Skip to content

Commit 7b2c714

Browse files
committed
chore: fix CI
1 parent 20d34c6 commit 7b2c714

1 file changed

Lines changed: 25 additions & 14 deletions

File tree

.github/workflows/release.yml

Lines changed: 25 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -14,36 +14,47 @@ jobs:
1414
CGO_ENABLED: 0
1515

1616
steps:
17+
# temporary workaround for an error in free disk space action
18+
# https://github.com/jlumbroso/free-disk-space/issues/14
19+
- name: Update Package List and Remove Dotnet
20+
run: |
21+
sudo apt-get update
22+
sudo apt-get remove -y '^dotnet-.*'
1723
18-
# https://github.com/marketplace/actions/checkout
19-
- name: Check out code
20-
uses: actions/checkout@v3
24+
# https://github.com/marketplace/actions/free-disk-space-ubuntu
25+
- name: Free Disk Space
26+
uses: jlumbroso/free-disk-space@main
2127
with:
22-
fetch-depth: 0
28+
# this might remove tools that are actually needed
29+
tool-cache: false
30+
31+
# all of these default to true
32+
android: true
33+
dotnet: true
34+
haskell: true
35+
large-packages: true
36+
docker-images: true
37+
swap-storage: false
2338

2439
# https://github.com/marketplace/actions/setup-go-environment
2540
- name: Set up Go ${{ env.GO_VERSION }}
2641
uses: actions/setup-go@v4
2742
with:
2843
go-version: ${{ env.GO_VERSION }}
2944

30-
# https://github.com/marketplace/actions/cache
31-
- name: Cache Go modules
32-
uses: actions/cache@v2
45+
# https://github.com/marketplace/actions/checkout
46+
- name: Check out code
47+
uses: actions/checkout@v4
3348
with:
34-
path: ~/go/pkg/mod
35-
key: ${{ runner.os }}-go-${{ hashFiles('**/go.sum') }}
36-
restore-keys: |
37-
${{ runner.os }}-go-
38-
49+
fetch-depth: 0
3950
- name: Make
4051
run: make build
4152

4253
- name: Run GoReleaser
43-
uses: goreleaser/goreleaser-action@v2
54+
uses: goreleaser/goreleaser-action@v4
4455
with:
4556
version: latest
46-
args: release --rm-dist --timeout=90m
57+
args: release -p 1 --clean --timeout=90m
4758
env:
4859
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
4960

0 commit comments

Comments
 (0)