From 7e210a1547e88eabf8e598a86d9e3b1cb008f8da Mon Sep 17 00:00:00 2001 From: stringhandler Date: Tue, 30 Apr 2024 14:16:18 +0200 Subject: [PATCH] add release --- .github/workflows/build_binaries.yml | 20 +++++++++++++++++++- 1 file changed, 19 insertions(+), 1 deletion(-) diff --git a/.github/workflows/build_binaries.yml b/.github/workflows/build_binaries.yml index 46063f2..1e46628 100644 --- a/.github/workflows/build_binaries.yml +++ b/.github/workflows/build_binaries.yml @@ -6,6 +6,8 @@ name: Build Matrix of Binaries branches: - main - build-* + tags: + - "v[0-9]+.[0-9]+.[0-9]+" env: TARI_TARGET_NETWORK: nextnet @@ -42,4 +44,20 @@ jobs: cargo build --release --bin xtrgpuminer - uses: actions/upload-artifact@v4 with: - path: src/miner/target/release/xtrgpuminer.exe \ No newline at end of file + name: xtr_miner + path: src/miner/target/release/xtrgpuminer.exe + + create-release: + runs-on: ubuntu-latest + needs: build + if: ${{ startsWith(github.ref, 'refs/tags/v') }} + steps: + - name: Download binaries + uses: actions/download-artifact@v4 + - name: Create release + uses: ncipollo/release-action@v1 + with: + artifacts: "xtr_*/**/*" + token: ${{ secrets.GITHUB_TOKEN }} + prerelease: true + draft: true \ No newline at end of file