From 5dbf984f6200e2b6f013ae4464374ac69c4b2881 Mon Sep 17 00:00:00 2001 From: ClementTsang Date: Mon, 17 Aug 2026 23:34:30 -0400 Subject: [PATCH] replace softprops/action-gh-release with gh release --- .github/ci/release_notes.md | 17 +++++++++++++++ .github/workflows/deployment.yml | 36 +++++--------------------------- .github/workflows/nightly.yml | 16 +++++--------- 3 files changed, 27 insertions(+), 42 deletions(-) create mode 100644 .github/ci/release_notes.md diff --git a/.github/ci/release_notes.md b/.github/ci/release_notes.md new file mode 100644 index 00000000..e0f831f5 --- /dev/null +++ b/.github/ci/release_notes.md @@ -0,0 +1,17 @@ + + +--- + +## Bug Fixes + +## Features + +## Changes + +## Other + +## Internal Changes + +## New Contributors + +--- diff --git a/.github/workflows/deployment.yml b/.github/workflows/deployment.yml index 27c835e8..92c33c46 100644 --- a/.github/workflows/deployment.yml +++ b/.github/workflows/deployment.yml @@ -129,34 +129,8 @@ jobs: echo "Generated $(ls ./release | wc -l) files:" du -h -d 0 ./release/* - - name: Create release and add release files - uses: softprops/action-gh-release@c062e08bd532815e2082a85e87e3ef29c3e6d191 # 2.0.8 - with: - token: ${{ secrets.GITHUB_TOKEN }} - prerelease: false - tag_name: ${{ env.RELEASE_VERSION }} - draft: true - fail_on_unmatched_files: true - name: ${{ env.RELEASE_VERSION }} Release - body: | - - - --- - - ## Bug Fixes - - ## Features - - ## Changes - - ## Other - - ## Internal Changes - - ## New Contributors - - --- - - **Full Changelog:** - files: | - ./release/* + - name: Create release with files + run: | + gh release create "${RELEASE_VERSION}" ./release/* --title "${RELEASE_VERSION} Release" --notes-file ./.github/ci/release_notes.md --draft --generate-notes --fail-on-no-commits + env: + GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} diff --git a/.github/workflows/nightly.yml b/.github/workflows/nightly.yml index d40c01e0..b83a33bb 100644 --- a/.github/workflows/nightly.yml +++ b/.github/workflows/nightly.yml @@ -135,18 +135,12 @@ jobs: GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} # As a workaround to immutable releases, we create it as a draft first, then manually publish it after. - - name: Add all release files and create nightly release if not mock - uses: softprops/action-gh-release@c062e08bd532815e2082a85e87e3ef29c3e6d191 # 2.0.8 + - name: Create nightly release with files if not mock if: github.event.inputs.isMock != 'true' - with: - token: ${{ secrets.GITHUB_TOKEN }} - prerelease: true - tag_name: ${{ env.TAG_NAME }} - draft: true - fail_on_unmatched_files: true - name: ${{ env.RELEASE_NAME }} - files: | - ./release/* + run: | + gh release create "${TAG_NAME}" ./release/* --title "${RELEASE_NAME}" --draft --prerelease + env: + GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} - name: Publish the draft release if: github.event.inputs.isMock != 'true'