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 }}