Skip to content

Commit

Permalink
Fix wasm release builds 2
Browse files Browse the repository at this point in the history
  • Loading branch information
Yeicor committed Dec 1, 2024
1 parent cd17039 commit 10711a0
Showing 1 changed file with 8 additions and 8 deletions.
16 changes: 8 additions & 8 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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: |
Expand Down Expand Up @@ -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
Expand Down Expand Up @@ -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:
Expand Down

0 comments on commit 10711a0

Please sign in to comment.