Skip to content

Commit

Permalink
cd: change release action to write changelog
Browse files Browse the repository at this point in the history
  • Loading branch information
biodrone committed Jan 29, 2022
1 parent 4ae58f0 commit d42db21
Showing 1 changed file with 19 additions and 6 deletions.
25 changes: 19 additions & 6 deletions .github/workflows/deploy_master.yml
Original file line number Diff line number Diff line change
Expand Up @@ -33,16 +33,29 @@ jobs:
load: true
tags: dangeroustech/streamdl:latest

- name: Version
uses: go-semantic-release/action@v1
id: semrel
- name: Changelog
uses: TriPSs/conventional-changelog-action@v3
id: changelog
with:
github-token: ${{ secrets.GITHUB_TOKEN }}
git-message: 'chore(release): {version} [skip ci]'
force-bump-patch-version: true
changelog-generator-opt: "emojis=true"
changelog-file: "CHANGELOG.md"
prepend: true
update-file: pyproject.toml
output-file: "CHANGELOG.md"
tag-prefix: 'v'
release-count: 0
version-file: pyproject.toml

- name: Create Release
uses: actions/create-release@v1
id: release
if: ${{ steps.changelog.outputs.skipped == 'false' }}
env:
GITHUB_TOKEN: ${{ secrets.github_token }}
with:
tag_name: ${{ steps.changelog.outputs.tag }}
release_name: ${{ steps.changelog.outputs.tag }}
body: ${{ steps.changelog.outputs.clean_changelog }}

- name: Dockerhub Push Stable
id: dockerhub_stable_push
Expand Down

0 comments on commit d42db21

Please sign in to comment.