Skip to content

Commit 81cd550

Browse files
authored
refactor(release): streamline workflow steps and add disk cleanup (#846)
Signed-off-by: yxxhero <aiopsclub@163.com>
1 parent 7aa0c25 commit 81cd550

File tree

1 file changed

+12
-6
lines changed

1 file changed

+12
-6
lines changed

.github/workflows/release.yaml

Lines changed: 12 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -11,16 +11,22 @@ jobs:
1111
goreleaser:
1212
runs-on: ubuntu-latest
1313
steps:
14-
-
15-
name: Checkout
14+
- name: Checkout
1615
uses: actions/checkout@v5
17-
-
18-
name: Set up Go
16+
- name: Set up Go
1917
uses: actions/setup-go@v6
2018
with:
2119
go-version-file: 'go.mod'
22-
-
23-
name: Run GoReleaser
20+
- name: cleanup disk
21+
run: |
22+
sudo rm -rf /usr/share/dotnet
23+
sudo rm -rf /opt/ghc
24+
sudo rm -rf /usr/local/share/boost
25+
sudo rm -fr /usr/local/lib/android
26+
sudo rm -fr /opt/hostedtoolcache/CodeQL
27+
sudo docker image prune --all --force
28+
sudo docker builder prune -a --force
29+
- name: Run GoReleaser
2430
uses: goreleaser/goreleaser-action@v6
2531
with:
2632
version: latest

0 commit comments

Comments
 (0)