diff --git a/.github/workflows/tags.yaml b/.github/workflows/tag-and-release.yaml similarity index 58% rename from .github/workflows/tags.yaml rename to .github/workflows/tag-and-release.yaml index dce3d37..0f6755c 100644 --- a/.github/workflows/tags.yaml +++ b/.github/workflows/tag-and-release.yaml @@ -1,10 +1,10 @@ -name: Tag + Bump version +name: Tag + Create Release on: push: branches: - main jobs: - build: + tag: runs-on: ubuntu-22.04 permissions: contents: write @@ -13,7 +13,8 @@ jobs: with: ref: ${{ github.event.pull_request.merge_commit_sha }} fetch-depth: '0' - - name: Bump version and push tag + - name: Create Tag 🏷️ + id: create_tag uses: anothrNick/github-tag-action@1.64.0 env: DEFAULT_BUMP: patch @@ -25,3 +26,16 @@ jobs: PATCH_STRING_TOKEN: PATCH NONE_STRING_TOKEN: NONE BRANCH_HISTORY: last + outputs: + tag: ${{ steps.create_tag.outputs.tag }} + release: + needs: [tag] + runs-on: ubuntu-22.04 + permissions: + contents: write + steps: + - name: 🛎️ Create release + uses: ncipollo/release-action@v1 + with: + token: ${{ secrets.GITHUB_TOKEN }} + tag: ${{ needs.tag.outputs.tag }}