From e706a0e1ca141ccae92b72556ab15ef030af259c Mon Sep 17 00:00:00 2001 From: Nathan Allen Date: Sat, 10 Jun 2023 13:47:20 -0400 Subject: [PATCH] chore(ci): add release action --- .github/workflows/release.yml | 31 +++++++++++++++++++++++++++++++ 1 file changed, 31 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..9de52e4 --- /dev/null +++ b/.github/workflows/release.yml @@ -0,0 +1,31 @@ +name: Release + +on: + push: + branches: + - master + +defaults: + run: + shell: bash + +jobs: + release: + runs-on: ubuntu-latest + + steps: + - name: Checkout repository + uses: actions/checkout@v3.5.2 + + - name: Bump version and push tag + uses: mathieudutour/github-tag-action@v6.1 + id: bump_version + with: + github_token: ${{ secrets.GITHUB_TOKEN }} + + - name: Create a GitHub release + uses: ncipollo/release-action@v1.12.0 + with: + tag: ${{ steps.bump_version.outputs.new_tag }} + name: Release ${{ steps.bump_version.outputs.new_tag }} + body: ${{ steps.bump_version.outputs.changelog }}