Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 4 additions & 4 deletions .github/workflows/publish-binaries.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,9 +17,9 @@ jobs:
- name: Login GH CLI
run: gh auth login --with-token < <(echo ${{ secrets.GITHUB_TOKEN }})
- name: Delete old dev release
run: gh release delete -R bytecodealliance/wac-cli dev -y || true
run: gh release delete -R bytecodealliance/wac dev -y || true
- name: Create new latest release
run: gh release create -R bytecodealliance/wac-cli dev --prerelease --notes "Published artifacts from the latest build"
run: gh release create -R bytecodealliance/wac dev --prerelease --notes "Published artifacts from the latest build"

publish_dev_release:
if: github.event_name == 'push' && github.ref == 'refs/heads/main' && github.repository == 'bytecodealliance/wac'
Expand Down Expand Up @@ -61,7 +61,7 @@ jobs:
- name: Login GH CLI
shell: bash
run: gh auth login --with-token < <(echo ${{ secrets.GITHUB_TOKEN }})
- run: gh release upload -R bytecodealliance/wac-cli --clobber dev target/${{ matrix.rust-target }}/release/wac-cli-${{ matrix.rust-target }}
- run: gh release upload -R bytecodealliance/wac --clobber dev target/${{ matrix.rust-target }}/release/wac-cli-${{ matrix.rust-target }}

publish_tagged_release:
if: github.event_name == 'push' && startsWith(github.ref, 'refs/tags/v') && github.repository == 'bytecodealliance/wac'
Expand Down Expand Up @@ -100,4 +100,4 @@ jobs:
- name: Login GH CLI
shell: bash
run: gh auth login --with-token < <(echo ${{ secrets.GITHUB_TOKEN }})
- run: gh release upload -R bytecodealliance/wac-cli --clobber ${{ github.ref_name }} target/${{ matrix.rust-target }}/release/wac-cli-${{ matrix.rust-target }}
- run: gh release upload -R bytecodealliance/wac --clobber ${{ github.ref_name }} target/${{ matrix.rust-target }}/release/wac-cli-${{ matrix.rust-target }}