From 842f25a0541f7e69fbb9664ca249f3d52b2df16e Mon Sep 17 00:00:00 2001 From: Simon Reinisch Date: Wed, 8 May 2024 19:07:16 +0200 Subject: [PATCH] chore: add release workflow --- .github/workflows/main.yml | 21 +++++++++++++++++++++ 1 file changed, 21 insertions(+) diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index c14f89e..7c7bde4 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -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 }}