From 8b20973abb49504776f349e95083034c6919716c Mon Sep 17 00:00:00 2001 From: Souma <101255979+5ouma@users.noreply.github.com> Date: Fri, 10 May 2024 17:20:41 +0900 Subject: [PATCH] ci(tagpr): Don't use tagpr (#96) It's unstable and doesn't run as expected. --- .github/workflows/release.yml | 13 ++----------- .tagpr | 8 -------- 2 files changed, 2 insertions(+), 19 deletions(-) delete mode 100644 .tagpr diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 3faec23..b2ae162 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -2,8 +2,8 @@ name: 🚀 Release on: push: - branches: - - "main" + tags: + - "v[0-9]+.[0-9]+.[0-9]+" permissions: contents: write @@ -17,20 +17,12 @@ jobs: - name: 🚚 Checkout Repository uses: actions/checkout@v4 - - name: 🏷️ Create a New Tag - id: tagpr - uses: Songmu/tagpr@v1 - env: - GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} - - name: 🐹 Setup Go - if: ${{ steps.tagpr.outputs.tag != '' }} uses: actions/setup-go@v5 with: go-version-file: "go.mod" - name: 💳 Create GitHub App Token - if: ${{ steps.tagpr.outputs.tag != '' }} uses: actions/create-github-app-token@v1 id: app-token with: @@ -40,7 +32,6 @@ jobs: repositories: "homebrew-formula" - name: 🚀 Build and Rrelease with GoReleaser - if: ${{ steps.tagpr.outputs.tag != '' }} uses: goreleaser/goreleaser-action@v5 with: args: release --clean --config=.github/goreleaser.yml diff --git a/.tagpr b/.tagpr deleted file mode 100644 index 3976714..0000000 --- a/.tagpr +++ /dev/null @@ -1,8 +0,0 @@ -[tagpr] - releaseBranch = "main" - versionFile = "-" - vPrefix = true - changelog = false - release = false - majorLabels = "Type: Breaking Change" - minorLabels = "Type: Feature"