Skip to content

Commit 55641c9

Browse files
authored
Merge pull request #429 from Morganov/feature/generate-changelog
Fix release process with changelog
2 parents 819ccc1 + afaa6ff commit 55641c9

File tree

1 file changed

+14
-6
lines changed

1 file changed

+14
-6
lines changed

.github/workflows/release.yml

Lines changed: 14 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -23,12 +23,6 @@ jobs:
2323
echo "New tag name: 2.1.${PATCH}"
2424
echo "::set-output name=tagname::2.1.${PATCH}"
2525
26-
- name: Generate change log
27-
id: release-changelog
28-
uses: mikepenz/release-changelog-builder-action@v2
29-
env:
30-
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
31-
3226
- name: Set up Ruby
3327
uses: ruby/setup-ruby@v1
3428
with:
@@ -45,4 +39,18 @@ jobs:
4539
tag: ${{ steps.compute-tag.outputs.tagname }}
4640
commit: master
4741
artifacts: './progit.epub,./progit.mobi,./progit.pdf,./progit.html'
42+
43+
- name: Generate Changelog
44+
id: release-changelog
45+
uses: mikepenz/release-changelog-builder-action@v2
46+
env:
47+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
48+
49+
- name: Set changelog to the release
50+
uses: ncipollo/release-action@v1
51+
with:
52+
token: ${{ secrets.GITHUB_TOKEN }}
53+
tag: ${{ steps.compute-tag.outputs.tagname }}
54+
commit: master
55+
allowUpdates: true
4856
body: ${{ steps.release-changelog.outputs.changelog }}

0 commit comments

Comments
 (0)