-
Notifications
You must be signed in to change notification settings - Fork 5
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
1 changed file
with
31 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,31 @@ | ||
name: Cache goreleaser | ||
|
||
# This workflow exists only to create cache for goreleaser binary | ||
# so that it can be used in the release workflow, that runs on tags | ||
# and cannot reuse caches from other runs except for the same tag or default branch | ||
|
||
on: | ||
workflow_dispatch: | ||
push: | ||
branches: | ||
- main | ||
|
||
jobs: | ||
release: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: Set up Go | ||
uses: actions/setup-go@v5 | ||
with: | ||
go-version: '1.23.3' | ||
|
||
- name: Cache installed binaries | ||
uses: actions/cache@v4 | ||
with: | ||
path: /home/runner/go/bin | ||
key: ${{ runner.os }}-goreleaser | ||
|
||
- name: Install goreleaser | ||
run: | | ||
go install github.com/goreleaser/goreleaser/v2@latest | ||
which goreleaser |