From 49305e089f9b9c0ccc8d886cde28843c788fd87e Mon Sep 17 00:00:00 2001 From: Eric Liu Date: Tue, 28 Jan 2025 05:37:15 +0000 Subject: [PATCH] Update GitHub Release workflow configuration Upgrade action-gh-release to v2, add draft and prerelease flags, and simplify token configuration --- .github/workflows/build.yml | 11 +++++------ 1 file changed, 5 insertions(+), 6 deletions(-) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index baf15cc..f5fede9 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -57,12 +57,11 @@ jobs: path: build/*.deb - name: Upload to GitHub Release - if: github.event_name == 'push' && github.ref == 'refs/heads/master' - uses: softprops/action-gh-release@v1 + uses: softprops/action-gh-release@v2 with: - files: build/*.deb + token: ${{ secrets.GITHUB_TOKEN }} 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 + files: build/*.deb + draft: true + prerelease: true \ No newline at end of file