Skip to content

Commit

Permalink
Merge pull request #33 from fpco/auto-release
Browse files Browse the repository at this point in the history
Add auto release on version tags
  • Loading branch information
psibi authored Nov 29, 2022
2 parents e86b204 + c00e701 commit 3d560c2
Showing 1 changed file with 20 additions and 0 deletions.
20 changes: 20 additions & 0 deletions .github/workflows/rust.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,8 @@ name: Rust
on:
push:
branches: [main]
tags:
- 'v*' # Push events to matching v*, i.e. v1.0, v20.15.10
pull_request:

env:
Expand Down Expand Up @@ -77,6 +79,12 @@ jobs:
with:
name: binaries
path: artifacts/*
- name: Release
uses: softprops/action-gh-release@v1
if: startsWith(github.ref, 'refs/tags/')
with:
files: artifacts/amber-x86_64-unknown-linux-musl
generate_release_notes: true

macos-binary:
runs-on: macos-latest
Expand All @@ -101,6 +109,12 @@ jobs:
with:
name: binaries
path: artifacts/*
- name: Release
uses: softprops/action-gh-release@v1
if: startsWith(github.ref, 'refs/tags/')
with:
files: artifacts/amber-x86_64-apple-darwin
generate_release_notes: true

windows-binary:
runs-on: windows-latest
Expand All @@ -125,3 +139,9 @@ jobs:
with:
name: binaries
path: artifacts/*
- name: Release
uses: softprops/action-gh-release@v1
if: startsWith(github.ref, 'refs/tags/')
with:
files: artifacts/amber-x86_64-pc-windows-gnu.exe
generate_release_notes: true

0 comments on commit 3d560c2

Please sign in to comment.