From 0c3f21f16b433aa3ffda06be2c212918a8b62fab Mon Sep 17 00:00:00 2001 From: Eric Liu Date: Tue, 28 Jan 2025 05:28:57 +0000 Subject: [PATCH] Add GitHub Release upload to build workflow Configure automatic GitHub Release creation for Debian package when pushing to master branch, including version tagging and release notes generation --- .github/workflows/build.yml | 13 ++++++++++++- 1 file changed, 12 insertions(+), 1 deletion(-) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index f3b8ed5..baf15cc 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -54,4 +54,15 @@ jobs: uses: actions/upload-artifact@v3 with: name: cpu-check-deb - path: build/*.deb \ No newline at end of file + path: build/*.deb + + - name: Upload to GitHub Release + if: github.event_name == 'push' && github.ref == 'refs/heads/master' + uses: softprops/action-gh-release@v1 + with: + files: build/*.deb + tag_name: v1.0.0 + name: Release v1.0.0 + generate_release_notes: true + env: + GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} \ No newline at end of file