From 308c6456d44b9fac8c6aa31d15507a5d93597f7b Mon Sep 17 00:00:00 2001 From: Alex Date: Tue, 13 Jun 2023 01:31:59 +0300 Subject: [PATCH] feat: add auto-releaser --- .github/workflows/release.yml | 30 ++++++++++++++++++++++++++++++ 1 file changed, 30 insertions(+) create mode 100644 .github/workflows/release.yml diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml new file mode 100644 index 0000000..a1e1506 --- /dev/null +++ b/.github/workflows/release.yml @@ -0,0 +1,30 @@ +name: Create Release + +on: + push: + tags: + - '*' + +jobs: + create-release: + runs-on: ubuntu-latest + + steps: + - name: Checkout + uses: actions/checkout@v3 + + - 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@v1.1.4 + env: + GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} + with: + tag_name: ${{ github.ref }} + release_name: Release ${{ github.ref }} + body: ${{ steps.changelog.outputs.changes }}