CI: check the built version without an inline expression
All checks were successful
release / release (push) Successful in 48s
All checks were successful
release / release (push) Successful in 48s
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
@@ -48,12 +48,14 @@ jobs:
|
|||||||
[ "$code" = 200 ] && echo "new=0" >> "$GITHUB_OUTPUT" || echo "new=1" >> "$GITHUB_OUTPUT"
|
[ "$code" = 200 ] && echo "new=0" >> "$GITHUB_OUTPUT" || echo "new=1" >> "$GITHUB_OUTPUT"
|
||||||
- name: Build
|
- name: Build
|
||||||
if: steps.check.outputs.new == '1'
|
if: steps.check.outputs.new == '1'
|
||||||
|
env:
|
||||||
|
V: ${{ steps.check.outputs.version }}
|
||||||
run: |
|
run: |
|
||||||
curl -sSf https://sh.rustup.rs | sh -s -- -y -q --profile minimal --no-modify-path
|
curl -sSf https://sh.rustup.rs | sh -s -- -y -q --profile minimal --no-modify-path
|
||||||
export PATH="$CARGO_HOME/bin:$PATH"
|
export PATH="$CARGO_HOME/bin:$PATH"
|
||||||
cargo install -q --locked --git "$SDK_GIT" --tag "$SDK_TAG" sf-pack
|
cargo install -q --locked --git "$SDK_GIT" --tag "$SDK_TAG" sf-pack
|
||||||
"$W/src/package.sh"
|
"$W/src/package.sh"
|
||||||
ls "$W"/src/dist | grep -q -- "-${{ steps.check.outputs.version }}.tar.zst$" || { echo "built another version" >&2; exit 1; }
|
[ -f "$W/src/dist/support.bluefox.steam-$V.tar.zst" ] || { echo "built another version than $V" >&2; exit 1; }
|
||||||
- name: Release
|
- name: Release
|
||||||
if: steps.check.outputs.new == '1'
|
if: steps.check.outputs.new == '1'
|
||||||
env:
|
env:
|
||||||
|
|||||||
Reference in New Issue
Block a user