diff --git a/.github/workflows/rust.yml b/.github/workflows/rust.yml index da65481..0deff87 100755 --- a/.github/workflows/rust.yml +++ b/.github/workflows/rust.yml @@ -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: @@ -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 @@ -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 @@ -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