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 395f7e9
Showing 1 changed file with 23 additions and 0 deletions.
23 changes: 23 additions & 0 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -73,3 +73,26 @@ 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
permissions:
contents: write
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 395f7e9

Please sign in to comment.