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