diff --git a/.github/workflows/bump_and_release.yaml b/.github/workflows/bump_and_release.yaml new file mode 100644 index 0000000..0e1c2b7 --- /dev/null +++ b/.github/workflows/bump_and_release.yaml @@ -0,0 +1,39 @@ +name: Bump and release +on: + push: + branches: + - main + +jobs: + bump: + runs-on: ubuntu-latest + permissions: + contents: write + outputs: + new_tag: ${{ steps.bump.outputs.new_tag }} + steps: + - name: Checkout + uses: actions/checkout@v3 + with: + fetch-depth: '0' + + - name: Bump version and push tag + id: bump + uses: anothrNick/github-tag-action@1.64.0 # Don't use @master or @v1 unless you're happy to test the latest version + env: + GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} # if you don't want to set write permissions use a PAT token + WITH_V: true + DEFAULT_BUMP: none + + release: + runs-on: ubuntu-latest + needs: bump + steps: + - name: Checkout + uses: actions/checkout@v3 + + - name: release + uses: ncipollo/release-action@v1 + with: + tag: ${{ needs.bump.outputs.new_tag }} + generateReleaseNotes: true