Skip to content

Commit 461693e

Browse files
committed
fix(ci): run releases from the manual tag workflow
- run GoReleaser in cut-release so manual tags do not rely on a second workflow triggered by GITHUB_TOKEN - keep the tag-push release workflow for tags created outside GitHub Actions - remove Dependabot for now and bump actions/setup-go to the current v6.4.0 release
1 parent d923418 commit 461693e

4 files changed

Lines changed: 17 additions & 8 deletions

File tree

.github/dependabot.yml

Lines changed: 0 additions & 6 deletions
This file was deleted.

.github/workflows/ci.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ jobs:
1818
uses: actions/checkout@v6.0.2
1919

2020
- name: Set up Go
21-
uses: actions/setup-go@v6.1.0
21+
uses: actions/setup-go@v6.4.0
2222
with:
2323
go-version-file: go.mod
2424
cache: true

.github/workflows/cut-release.yml

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -90,3 +90,18 @@ jobs:
9090
git config user.email "41898282+github-actions[bot]@users.noreply.github.com"
9191
git tag -a "${TAG}" -m "Release ${TAG}"
9292
git push origin "${TAG}"
93+
94+
- name: Set up Go
95+
uses: actions/setup-go@v6.4.0
96+
with:
97+
go-version-file: go.mod
98+
cache: true
99+
100+
- name: Run GoReleaser
101+
uses: goreleaser/goreleaser-action@v7.0.0
102+
with:
103+
distribution: goreleaser
104+
version: "~> v2"
105+
args: release --clean
106+
env:
107+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

.github/workflows/release.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ jobs:
1919
fetch-depth: 0
2020

2121
- name: Set up Go
22-
uses: actions/setup-go@v6.1.0
22+
uses: actions/setup-go@v6.4.0
2323
with:
2424
go-version-file: go.mod
2525
cache: true

0 commit comments

Comments
 (0)