Skip to content

Commit 8281263

Browse files
committed
ci(release): switch to ncipollo/release-action for GitHub releases
- Replace softprops/action-gh-release with ncipollo/release-action - Update workflow to use new release action with appropriate parameters - Adjust environment variables and configuration to match new action requirements
1 parent 9fde41f commit 8281263

File tree

1 file changed

+20
-20
lines changed

1 file changed

+20
-20
lines changed

.github/workflows/release.yml

Lines changed: 20 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -118,27 +118,27 @@ jobs:
118118
echo "RELEASE_TAG=${{ steps.bump_version.outputs.tag }}" >> $GITHUB_ENV
119119
echo "RELEASE_CHANGELOG=${{ steps.bump_version.outputs.changelog }}" >> $GITHUB_ENV
120120
121-
- name: 🏗️ Create empty release or modify a release existed
122-
id: create_release
123-
uses: softprops/action-gh-release@v2
124-
with:
125-
tag_name: ${{ env.RELEASE_TAG }}
126-
token: ${{ secrets.GITHUB_TOKEN }}
127-
append_body: ${{ env.RELEASE_CHANGELOG }}
128-
# target_commitish: main
129-
draft: true
130-
131121
# - name: 🏗️ Create empty release or modify a release existed
132122
# id: create_release
133-
# uses: ncipollo/release-action@v1
123+
# uses: softprops/action-gh-release@v2
134124
# with:
135-
# token: "${{ secrets.GITHUB_TOKEN }}"
136-
# tag: "${{ env.RELEASE_TAG }}"
137-
# body: "${{ env.RELEASE_CHANGELOG }}"
138-
# omitBody: ${{ env.RELEASE_CHANGELOG == '' && true || false }}
139-
# omitName: true
140-
# makeLatest: false
141-
# omitPrereleaseDuringUpdate: true
142-
# allowUpdates: true
143-
# omitDraftDuringUpdate: true
125+
# tag_name: ${{ env.RELEASE_TAG }}
126+
# token: ${{ secrets.GITHUB_TOKEN }}
127+
# append_body: ${{ env.RELEASE_CHANGELOG }}
128+
# # target_commitish: main
144129
# draft: true
130+
131+
- name: 🏗️ Create empty release or modify a release existed
132+
id: create_release
133+
uses: ncipollo/release-action@v1
134+
with:
135+
token: "${{ secrets.GITHUB_TOKEN }}"
136+
tag: "${{ env.RELEASE_TAG }}"
137+
body: "${{ env.RELEASE_CHANGELOG }}"
138+
omitBody: ${{ env.RELEASE_CHANGELOG == '' && true || false }}
139+
omitName: true
140+
makeLatest: false
141+
omitPrereleaseDuringUpdate: true
142+
allowUpdates: true
143+
omitDraftDuringUpdate: true
144+
draft: true

0 commit comments

Comments
 (0)