Skip to content

Commit

Permalink
workflows: Add release action
Browse files Browse the repository at this point in the history
  • Loading branch information
0x676e67 committed Jan 16, 2025
1 parent 96be855 commit 55fc3bf
Showing 1 changed file with 10 additions and 2 deletions.
12 changes: 10 additions & 2 deletions .github/workflows/CI.yml
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,7 @@ jobs:
- run: cargo check -p rhttp2

crates:
name: Publish crates
name: Release
runs-on: ubuntu-latest
environment: Linux
needs: [style]
Expand All @@ -86,4 +86,12 @@ jobs:
if: startsWith(github.ref, 'refs/tags/')
with:
registry-token: ${{ secrets.CARGO_REGISTRY_TOKEN }}
ignore-unpublished-changes: true
ignore-unpublished-changes: true

- name: Upload binaries to GitHub Release
uses: softprops/action-gh-release@v1
if: startsWith(github.ref, 'refs/tags/')
with:
token: ${{ secrets.CR_PAT }}
prerelease: ${{ contains(github.ref, 'alpha') || contains(github.ref, 'beta') }}
generate_release_notes: true

0 comments on commit 55fc3bf

Please sign in to comment.