mirror of
https://codeberg.org/ziglang/zig.git
synced 2025-12-06 13:54:21 +00:00
ci: linux: pass VERSION on_master_success
Cache the VERSION value for use with linux_on_mster_success.
This replaces 117c0460d3 .
This commit is contained in:
parent
f7cbd92e6c
commit
a1b79ea585
2 changed files with 4 additions and 1 deletions
|
|
@ -2,7 +2,7 @@
|
|||
|
||||
. ./ci/zinc/linux_base.sh
|
||||
|
||||
VERSION=$($RELEASE_STAGING/zig version)
|
||||
VERSION=$(cat $WORKSPACE/env.version)
|
||||
|
||||
# Avoid leaking oauth token.
|
||||
set +x
|
||||
|
|
|
|||
|
|
@ -36,5 +36,8 @@ s3cmd put -P --add-header="cache-control: public, max-age=31536000, immutable" "
|
|||
# Publish manifest.
|
||||
s3cmd put -P --add-header="cache-control: max-age=0, must-revalidate" "$MANIFEST" "s3://ziglang.org/builds/$ARCH-linux-$VERSION.json"
|
||||
|
||||
# Forward value to on_master_script
|
||||
echo "$VERSION" > $WORKSPACE/env.version
|
||||
|
||||
# Explicit exit helps show last command duration.
|
||||
exit
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue