Skip to content

Commit 70c6b7c

Browse files
authored
Avkr003/cleaner (#1421)
* cache cleaner for go releaser * cache cleaner for go releaser
1 parent edc46ce commit 70c6b7c

File tree

1 file changed

+36
-0
lines changed

1 file changed

+36
-0
lines changed
Lines changed: 36 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,36 @@
1+
name: Release
2+
3+
on:
4+
push:
5+
tags:
6+
- "v*"
7+
8+
jobs:
9+
goreleaser:
10+
runs-on: ubuntu-latest
11+
12+
steps:
13+
- name: Checkout
14+
uses: actions/checkout@v4
15+
16+
- name: Set up Go
17+
uses: actions/setup-go@v5
18+
with:
19+
go-version: 1.22
20+
21+
- name: Clean Go build cache
22+
run: |
23+
go clean -cache -modcache -testcache || true
24+
rm -rf /root/.cache/go-build /tmp/*
25+
26+
- name: Free disk space
27+
run: |
28+
sudo rm -rf /usr/share/dotnet /opt/ghc /usr/local/share/boost /usr/local/lib/android /opt/hostedtoolcache/CodeQL
29+
sudo apt-get clean
30+
df -h
31+
32+
- name: Run GoReleaser
33+
uses: goreleaser/goreleaser-action@v6
34+
with:
35+
version: latest
36+
args: release --clean

0 commit comments

Comments
 (0)