From c00e70126c5ccf73829b9f8a67fc8eea11ec5331 Mon Sep 17 00:00:00 2001 From: Sibi Prabakaran Date: Tue, 29 Nov 2022 15:19:25 +0530 Subject: [PATCH] Add auto release on version tags --- .github/workflows/rust.yml | 20 ++++++++++++++++++++ 1 file changed, 20 insertions(+) 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