Skip to content

Commit

Permalink
chore: add release workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
simonwep committed May 8, 2024
1 parent 508f6f6 commit 842f25a
Showing 1 changed file with 21 additions and 0 deletions.
21 changes: 21 additions & 0 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -73,3 +73,24 @@ jobs:
GENESIS_BUILD_VERSION=${{ github.ref_name }}
GENESIS_BUILD_COMMIT=${{ github.sha }}
GENESIS_BUILD_DATE=${{ github.event.head_commit.timestamp }}
publish_release:
if: startsWith(github.event.ref, 'refs/tags/v')
name: Publish new release
needs: build_and_test
runs-on: ubuntu-latest
steps:
- name: Checkout repository
uses: actions/checkout@v4

- name: Extract changes
id: changelog
uses: requarks/changelog-action@v1
with:
token: ${{ github.token }}
tag: ${{ github.ref_name }}

- name: Publish release
uses: softprops/action-gh-release@v2
with:
body: ${{ steps.changelog.outputs.changes }}

0 comments on commit 842f25a

Please sign in to comment.