Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Upload release artifacts from CI #8

Draft
wants to merge 5 commits into
base: main
Choose a base branch
from
Draft
Changes from 1 commit
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
Next Next commit
Upload release artifacts from CI
  • Loading branch information
mraerino committed Apr 19, 2023
commit ae78ef2a679857ff5cb37be25533a39c4bd85848
12 changes: 12 additions & 0 deletions .github/workflows/build.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -43,3 +43,15 @@ jobs:
with:
token: ${{ secrets.GITHUB_TOKEN }}
args: --all-features -- -Dwarnings

release:
name: Release
runs-on: ubuntu-22.04
needs: [build, lint]
if: startsWith(github.ref, 'refs/tags/')
steps:
- uses: actions/download-artifact@v3
with:
path: ./dist
- run: gh release create --generate-notes --title "Release ${{ github.ref_name }}" ${{ github.ref_name }} || true
- run: gh release upload ${{ github.ref_name }} dist/*