From 4a0ed8c2bbea7cd81127b557d3c83502b93b630a Mon Sep 17 00:00:00 2001 From: Krille Date: Sat, 11 Nov 2023 15:46:40 +0100 Subject: [PATCH] ci: Add release creation workflow --- .github/workflows/process_tag.yaml | 32 ++++++++++++++++++++++++++++++ 1 file changed, 32 insertions(+) create mode 100644 .github/workflows/process_tag.yaml diff --git a/.github/workflows/process_tag.yaml b/.github/workflows/process_tag.yaml new file mode 100644 index 00000000..b3a00731 --- /dev/null +++ b/.github/workflows/process_tag.yaml @@ -0,0 +1,32 @@ +on: + push: + tags: + - "v*" + - "rc*" + +name: Process Tags + +jobs: + build: + name: Create Release + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v2 + - name: Get Changelog Entry + id: changelog_reader + uses: mindsers/changelog-reader-action@v2 + with: + validation_level: warn + version: ${{ github.ref }} + path: ./CHANGELOG.md + - name: Create Release + id: create_release + uses: actions/create-release@v1 + env: + GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} + with: + tag_name: ${{ github.ref }} + release_name: Release ${{ github.ref }} + body: ${{ steps.changelog_reader.outputs.changes }} + draft: false + prerelease: ${{ startsWith(github.ref, 'rc') }}