Skip to content

Commit

Permalink
Add Release workflow
Browse files Browse the repository at this point in the history
Make MacOS release builds when a new version tag is created.

Signed-off-by: Nick Ochiel <[email protected]>
  • Loading branch information
nochiel committed Apr 30, 2024
1 parent 7b1a567 commit 21469ff
Showing 1 changed file with 34 additions and 0 deletions.
34 changes: 34 additions & 0 deletions .github/workflows/Release.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,34 @@
name: Release

permissions:
contents: write

on:
push:
tags:
- '[0-9]+.[0-9]+.[0-9]+'

jobs:
create-release:
runs-on: macos-latest
steps:
- uses: actions/checkout@v4
- uses: taiki-e/create-gh-release-action@v1
with:
# (optional) Path to changelog.
# changelog: CHANGELOG.md
# (required) GitHub token for creating GitHub Releases.
token: ${{ secrets.GITHUB_TOKEN }}

upload-assets:
needs: create-release
runs-on: macos-latest
steps:
- uses: actions/checkout@v4
- uses: taiki-e/upload-rust-binary-action@v1
with:
# (required) Comma-separated list of binary names (non-extension portion of filename) to build and upload.
# Note that glob pattern is not supported yet.
bin: musign
# (required) GitHub token for uploading assets to GitHub Releases.
token: ${{ secrets.GITHUB_TOKEN }}

0 comments on commit 21469ff

Please sign in to comment.