From 84ff2dec89f66842451b7a8e90206075f414ec51 Mon Sep 17 00:00:00 2001 From: Yeicor <4929005+Yeicor@users.noreply.github.com> Date: Sun, 1 Dec 2024 14:30:13 +0100 Subject: [PATCH] Fix wasm release builds 2 --- .github/workflows/release.yml | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 6df1bd2..36787e9 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -17,18 +17,18 @@ jobs: name: Update the version in Cargo.toml runs-on: ubuntu-latest steps: - - if: ${{ github.ref == 'refs/tags/v*.*.*' }} + - if: ${{ startsWith(github.ref, 'refs/tags/v') }} name: Checkout uses: actions/checkout@v4 with: ref: 'master' # HACK: Should be the tag, but we are making a push to master - - if: ${{ github.ref == 'refs/tags/v*.*.*' }} + - if: ${{ startsWith(github.ref, 'refs/tags/v') }} name: Update cargo run: | rustup update - - if: ${{ github.ref == 'refs/tags/v*.*.*' }} + - if: ${{ startsWith(github.ref, 'refs/tags/v') }} uses: Swatinem/rust-cache@v2.7.5 - - if: ${{ github.ref == 'refs/tags/v*.*.*' }} + - if: ${{ startsWith(github.ref, 'refs/tags/v') }} name: Auto-update Cargo.toml and move the release tag id: auto-update run: | @@ -95,12 +95,12 @@ jobs: # build: ??? # post: ??? steps: - - if: ${{ github.ref == 'refs/tags/v*.*.*' }} + - if: ${{ startsWith(github.ref, 'refs/tags/v') }} name: Checkout uses: actions/checkout@v4 with: ref: 'master' # HACK: See first checkout - - if: ${{ github.ref != 'refs/tags/v*.*.*' }} + - if: ${{ !startsWith(github.ref, 'refs/tags/v') }} name: Checkout uses: actions/checkout@v4 - name: Update cargo @@ -155,13 +155,13 @@ jobs: find target -type f -name "$build_name" -printf '%p' -exec mv {} "${exe_name}" \; echo "EXE_NAME=${exe_name}" >> $GITHUB_OUTPUT du -h "${exe_name}" - - if: ${{ github.ref == 'refs/tags/v*.*.*' }} + - if: ${{ startsWith(github.ref, 'refs/tags/v') }} name: Publish the release build uses: softprops/action-gh-release@v2 with: files: ${{ steps.prepare-release.outputs.EXE_NAME }} token: ${{ secrets.GITHUB_TOKEN }} - - if: ${{ github.ref != 'refs/tags/v*.*.*' }} + - if: ${{ !startsWith(github.ref, 'refs/tags/v') }} name: Publish the release as an artifact uses: actions/upload-artifact@v4 with: