Skip to content

Commit fbd4a41

Browse files
committed
feat!: change method of releasing to use gh tool
1 parent 90630c1 commit fbd4a41

File tree

1 file changed

+13
-18
lines changed

1 file changed

+13
-18
lines changed

.github/workflows/release.yml

Lines changed: 13 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,7 @@ jobs:
2323
with:
2424
tag_prefix: v
2525
debug: true
26+
2627
- name: Tag git repo with new version
2728
run: |
2829
git config user.name 'github-actions[bot]'
@@ -50,21 +51,15 @@ jobs:
5051
name=$(git --no-pager tag --sort=creatordate --merged refs/tags/${{ needs.tag.outputs.version-tag }} | tail -2 | head -1)
5152
echo "tag=$name" >> $GITHUB_OUTPUT
5253
53-
- name: Update changelog for release
54-
id: changelog
55-
uses: requarks/changelog-action@v1
56-
with:
57-
token: ${{ secrets.GITHUB_TOKEN }}
58-
fromTag: ${{ steps.previous.outputs.tag }}
59-
toTag: ${{ needs.tag.outputs.version-tag }}
60-
writeToFile: false
61-
62-
- name: Create Release
63-
uses: ncipollo/[email protected]
64-
with:
65-
allowUpdates: false
66-
makeLatest: true
67-
name: ${{ needs.tag.outputs.version-tag }}
68-
body: ${{ steps.changelog.outputs.changes }}
69-
token: ${{ secrets.GITHUB_TOKEN }}
70-
tag: ${{ needs.tag.outputs.version-tag }}
54+
- name: Create a new release
55+
env:
56+
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
57+
PREV_TAG: ${{ steps.previous.outputs.tag }}
58+
NEW_TAG: ${{ needs.tag.outputs.version-tag }}
59+
run: |
60+
gh release create $NEW_TAG \
61+
--fail-on-no-commits \
62+
--generate-notes \
63+
--latest \
64+
--notes-start-tag $PREV_TAG \
65+
--verify-tag

0 commit comments

Comments
 (0)