Skip to content

Commit

Permalink
add a release job that generates changelog and publish gh release (#3)
Browse files Browse the repository at this point in the history
  • Loading branch information
FrimIdan authored Apr 10, 2023
1 parent 8afc9f3 commit 59e1b42
Showing 1 changed file with 27 additions and 1 deletion.
28 changes: 27 additions & 1 deletion .github/workflows/release.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -11,4 +11,30 @@ jobs:
with:
image_tag: ${{ github.ref_name }}
push: true
upload: false

release:
needs: build_and_push
name: Release
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v3
with:
fetch-depth: 0

- name: Changelog
uses: Bullrich/generate-release-changelog@master
id: Changelog
env:
REPO: ${{ github.repository }}

- name: Create Release
id: create_release
uses: softprops/action-gh-release@v1
with:
tag_name: ${{ github.ref_name }}
name: ${{ github.ref_name }}
body: |
${{ steps.Changelog.outputs.changelog }}
draft: false
prerelease: false

0 comments on commit 59e1b42

Please sign in to comment.