diff --git a/.github/workflows/bump-git-tag.yml b/.github/workflows/bump-git-tag.yml deleted file mode 100644 index 7c2d657..0000000 --- a/.github/workflows/bump-git-tag.yml +++ /dev/null @@ -1,31 +0,0 @@ -name: Bump Version Git Tag -run-name: bump-version-tag - -on: - pull_request: - types: [closed] - branches: [main] - -env: - INITIAL_TAG_VERSION: '1.1' - PREFIX_TAG: true - PRERELEASE_MODE: true - RELEASE_BRANCH: "main" - -jobs: - bump_version_tag: - if: github.event.pull_request.merged == true - runs-on: ubuntu-latest - permissions: - contents: write - steps: - - name: Checkout - uses: actions/checkout@v4.1.1 - - name: Bump Version Git Tag - uses: anothrNick/github-tag-action@1.67.0 - env: - GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} - INITIAL_VERSION: ${{ env.INITIAL_TAG_VERSION }} - PRERELEASE: ${{ env.PRERELEASE_MODE }} - RELEASE_BRANCHES: ${{ env.RELEASE_BRANCH }} - WITH_V: ${{ env.PREFIX_TAG }} \ No newline at end of file diff --git a/.github/workflows/bump-tag-and-release-versions.yml b/.github/workflows/bump-tag-and-release-versions.yml new file mode 100644 index 0000000..3a074b0 --- /dev/null +++ b/.github/workflows/bump-tag-and-release-versions.yml @@ -0,0 +1,27 @@ +name: Bump GitHub Tag & Release Versions + +on: + push: + branches: + - main + +env: + FETCH_ALL: true + +jobs: + build: + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v4.1.1 + - name: Bump version and Push Tag + id: bump_tag_version + uses: mathieudutour/github-tag-action@v6.1 + with: + github_token: ${{ secrets.GITHUB_TOKEN }} + fetch_all_tags: ${{ env.FETCH_ALL }} + - name: Create a GitHub Release + uses: ncipollo/release-action@v1.13.0 + with: + tag: ${{ steps.bump_tag_version.outputs.new_tag }} + name: Release ${{ steps.bump_tag_version.outputs.new_tag }} + body: ${{ steps.bump_tag_version.outputs.changelog }} \ No newline at end of file