From 8f02121846fc4025a4cc47987eb2a553ec4b61d1 Mon Sep 17 00:00:00 2001 From: jack bond-preston Date: Sun, 3 Jul 2022 07:45:31 +0100 Subject: [PATCH] ci: add gh action to generate releases --- .github/workflows/main.yml | 30 ++++++++++++++++++++++++++++++ 1 file changed, 30 insertions(+) create mode 100644 .github/workflows/main.yml diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml new file mode 100644 index 0000000..eed6343 --- /dev/null +++ b/.github/workflows/main.yml @@ -0,0 +1,30 @@ +name: Create Release + +on: + push: + tags: + - '*' + +jobs: + create-release: + runs-on: ubuntu-latest + + steps: + - name: Checkout + uses: actions/checkout@v2 + + - name: Create changelog text + id: changelog + uses: loopwerk/tag-changelog@v1 + with: + token: ${{ secrets.GITHUB_TOKEN }} + exclude_types: other,doc,chore + + - name: Create release + uses: actions/create-release@latest + env: + GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} + with: + tag_name: ${{ github.ref }} + release_name: Release ${{ github.ref }} + body: ${{ steps.changelog.outputs.changes }}