Skip to content

Commit

Permalink
ci: Add release steps
Browse files Browse the repository at this point in the history
  • Loading branch information
felinira committed Jul 24, 2024
1 parent 3559fc9 commit b30f41f
Showing 1 changed file with 20 additions and 8 deletions.
28 changes: 20 additions & 8 deletions .github/workflows/push.yml
Original file line number Diff line number Diff line change
Expand Up @@ -176,14 +176,6 @@ jobs:
./target/${{ matrix.target }}/release/wormhole-rs
./target/${{ matrix.target }}/release/wormhole-rs.exe
if-no-files-found: error
- name: Release binaries
uses: softprops/action-gh-release@v2
if: startWith(github.ref, 'refs/tags/')
with:
files: "magic-wormhole-cli-*.tar.gz"
draft: true
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

coverage:
runs-on: ubuntu-latest
Expand Down Expand Up @@ -234,3 +226,23 @@ jobs:
toolchain: nightly
- name: Check semver
uses: obi1kenobi/cargo-semver-checks-action@v2

release:
name: Release
runs-on: ubuntu-latest
needs:
- dist
#if: startWith(github.ref, 'refs/tags/')
steps:
- name: Download Dist Artifacts
uses: actions/download-artifact@v4
with:
pattern: "magic-wormhole-cli-*"
path: dist
- name: Create Release
uses: softprops/action-gh-release@v2
with:
files: "dist/*"
draft: true
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

0 comments on commit b30f41f

Please sign in to comment.