Skip to content

Commit a5eccb9

Browse files
committed
replace release github action
1 parent 642ac92 commit a5eccb9

File tree

2 files changed

+7
-12
lines changed

2 files changed

+7
-12
lines changed

.github/workflows/github-release.yaml

Lines changed: 7 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -26,17 +26,15 @@ jobs:
2626
run: |
2727
make platfrom-build
2828
29-
- name: Generate Changelog
29+
- name: Build Changelog
30+
id: build_changelog
31+
uses: mikepenz/release-changelog-builder-action@{latest-release}
3032
env:
3133
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
32-
run: make changelog
3334

34-
- name: Release to GitHub
35-
if: startsWith(github.ref, 'refs/tags/')
36-
uses: docker://antonyurchenko/git-release:latest
37-
env:
38-
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
39-
DRAFT_RELEASE: "true"
35+
- name: Create Release
36+
uses: softprops/action-gh-release
4037
with:
41-
args: |
38+
body: ${{steps.github_release.outputs.changelog}}
39+
files: |
4240
.bin/*

Makefile

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -134,10 +134,7 @@ endif
134134
-v $(CURDIR):/usr/local/src/app \
135135
-w /usr/local/src/app githubchangeloggenerator/github-changelog-generator \
136136
--user doitintl --project secrets-init \
137-
--output CHANGELOG.tmp.md \
138137
--token $(GITHUB_TOKEN)
139-
$Q tail -n +3 CHANGELOG.tmp.md > CHANGELOG.md
140-
$Q rm CHANGELOG.tmp.md
141138

142139

143140
.PHONY: clean

0 commit comments

Comments
 (0)