From a8e527ce4cf4f74a827298710cfe098f6aeb3355 Mon Sep 17 00:00:00 2001 From: king-tri-ton Date: Tue, 3 Sep 2024 23:02:18 +0500 Subject: [PATCH] add release --- ...nd_scan.yml => build_scan_and_release.yml} | 22 ++++++++++++++++++- 1 file changed, 21 insertions(+), 1 deletion(-) rename .github/workflows/{build_and_scan.yml => build_scan_and_release.yml} (67%) diff --git a/.github/workflows/build_and_scan.yml b/.github/workflows/build_scan_and_release.yml similarity index 67% rename from .github/workflows/build_and_scan.yml rename to .github/workflows/build_scan_and_release.yml index 5e92e2b..14af517 100644 --- a/.github/workflows/build_and_scan.yml +++ b/.github/workflows/build_scan_and_release.yml @@ -1,4 +1,4 @@ -name: Build and Scan +name: Build, Scan, and Release on: push: @@ -44,3 +44,23 @@ jobs: with: vt_api_key: ${{ secrets.VIRUSTOTAL_API_KEY }} files: dist/MiniBin-KT.exe + + release: + needs: build + runs-on: ubuntu-latest + steps: + - name: Download artifact + uses: actions/download-artifact@v3 + with: + name: built-exe + + - name: Create GitHub Release + uses: actions/create-release@v1 + env: + GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} + with: + tag_name: v${{ github.run_number }} + release_name: Release v${{ github.run_number }} + draft: false + prerelease: false + files: dist/MiniBin-KT.exe