Skip to content

Commit

Permalink
fix: windows build should use bash (#163)
Browse files Browse the repository at this point in the history
Co-authored-by: Luis Moreno <morenol@users.noreply.github.com>
  • Loading branch information
morenol and morenol authored Oct 25, 2023
1 parent df0c2e4 commit 5c87a25
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion .github/workflows/publish-binaries.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ jobs:
- name: Delete old dev release
run: gh release delete -R bytecodealliance/cargo-component dev -y || true
- name: Create new latest release
run: gh release create -R bytecodealliance/cargo-component dev --notes "Published artifacts from the latest build"
run: gh release create -R bytecodealliance/cargo-component 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/cargo-component'
Expand Down Expand Up @@ -49,6 +49,7 @@ jobs:
- run: mv ./target/${{ matrix.rust-target }}/release/cargo-component ./target/${{ matrix.rust-target }}/release/cargo-component-${{ 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/cargo-component --clobber dev target/${{ matrix.rust-target }}/release/cargo-component-${{ matrix.rust-target }}

Expand Down Expand Up @@ -78,5 +79,6 @@ jobs:
- run: mv ./target/${{ matrix.rust-target }}/release/cargo-component ./target/${{ matrix.rust-target }}/release/cargo-component-${{ 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/cargo-component --clobber ${{ github.ref_name }} target/${{ matrix.rust-target }}/release/cargo-component-${{ matrix.rust-target }}

0 comments on commit 5c87a25

Please sign in to comment.