Skip to content

Commit

Permalink
updated
Browse files Browse the repository at this point in the history
  • Loading branch information
calvinrp committed May 16, 2024
1 parent e95ca26 commit b7ebd2b
Showing 1 changed file with 8 additions and 8 deletions.
16 changes: 8 additions & 8 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/warg dev -y || true
run: gh release delete -R bytecodealliance/registry dev -y || true
- name: Create new latest release
run: gh release create -R bytecodealliance/warg dev --prerelease --notes "Published artifacts from the latest build"
run: gh release create -R bytecodealliance/registry 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/registry'
Expand Down Expand Up @@ -54,14 +54,14 @@ jobs:
if: ${{ matrix.cross }}
- run: cross build --release --target ${{ matrix.rust-target }} --features native-tls-vendored
if: ${{ matrix.cross }}
- run: mv ./target/${{ matrix.rust-target }}/release/warg.exe ./target/${{ matrix.rust-target }}/release/warg-${{ matrix.rust-target }}
- run: mv ./target/${{ matrix.rust-target }}/release/warg-cli.exe ./target/${{ matrix.rust-target }}/release/warg-cli-${{ matrix.rust-target }}
if: matrix.os == 'windows-latest'
- run: mv ./target/${{ matrix.rust-target }}/release/warg ./target/${{ matrix.rust-target }}/release/warg-${{ matrix.rust-target }}
- run: mv ./target/${{ matrix.rust-target }}/release/warg-cli ./target/${{ matrix.rust-target }}/release/warg-cli-${{ matrix.rust-target }}
if: matrix.os != 'windows-latest'
- name: Login GH CLI
shell: bash
run: gh auth login --with-token < <(echo ${{ secrets.GITHUB_TOKEN }})
- run: gh release upload -R bytecodealliance/warg --clobber dev target/${{ matrix.rust-target }}/release/warg-${{ matrix.rust-target }}
- run: gh release upload -R bytecodealliance/registry --clobber dev target/${{ matrix.rust-target }}/release/warg-cli-${{ matrix.rust-target }}

publish_tagged_release:
if: github.event_name == 'push' && startsWith(github.ref, 'refs/tags/v') && github.repository == 'bytecodealliance/registry'
Expand Down Expand Up @@ -93,11 +93,11 @@ jobs:
if: ${{ matrix.cross }}
- run: cross build --release --target ${{ matrix.rust-target }} --features native-tls-vendored
if: ${{ matrix.cross }}
- run: mv ./target/${{ matrix.rust-target }}/release/warg.exe ./target/${{ matrix.rust-target }}/release/warg-${{ matrix.rust-target }}
- run: mv ./target/${{ matrix.rust-target }}/release/warg-cli.exe ./target/${{ matrix.rust-target }}/release/warg-cli-${{ matrix.rust-target }}
if: matrix.os == 'windows-latest'
- run: mv ./target/${{ matrix.rust-target }}/release/warg ./target/${{ matrix.rust-target }}/release/warg-${{ matrix.rust-target }}
- run: mv ./target/${{ matrix.rust-target }}/release/warg-cli ./target/${{ matrix.rust-target }}/release/warg-cli-${{ matrix.rust-target }}
if: matrix.os != 'windows-latest'
- name: Login GH CLI
shell: bash
run: gh auth login --with-token < <(echo ${{ secrets.GITHUB_TOKEN }})
- run: gh release upload -R bytecodealliance/warg --clobber ${{ github.ref_name }} target/${{ matrix.rust-target }}/release/warg-${{ matrix.rust-target }}
- run: gh release upload -R bytecodealliance/registry --clobber ${{ github.ref_name }} target/${{ matrix.rust-target }}/release/warg-cli-${{ matrix.rust-target }}

0 comments on commit b7ebd2b

Please sign in to comment.