-
Notifications
You must be signed in to change notification settings - Fork 6
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #436 from Yeicor/fix/release-builds
Fix wasm release builds
- Loading branch information
Showing
1 changed file
with
8 additions
and
8 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -17,18 +17,18 @@ jobs: | |
name: Update the version in Cargo.toml | ||
runs-on: ubuntu-latest | ||
steps: | ||
- if: startsWith(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: startsWith(github.ref, 'refs/tags/v') | ||
- if: ${{ startsWith(github.ref, 'refs/tags/v') }} | ||
name: Update cargo | ||
run: | | ||
rustup update | ||
- if: startsWith(github.ref, 'refs/tags/v') | ||
- if: ${{ startsWith(github.ref, 'refs/tags/v') }} | ||
uses: Swatinem/[email protected] | ||
- if: startsWith(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: startsWith(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: !startsWith(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: startsWith(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: !startsWith(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: | ||
|