File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 1414 - " v*"
1515
1616jobs :
17- build :
17+ release :
1818 runs-on : ubuntu-latest
1919 if : github.repository_owner == 'ctrlplanedev'
20- strategy :
21- matrix :
22- goos : [linux, darwin]
23- goarch : [amd64, arm64]
24- include :
25- - goos : linux
26- goarch : " 386"
2720 steps :
28- - name : Checkout
29- uses : actions/checkout@v4
30- with :
31- fetch-depth : 0
32-
33- - name : Set up Go
34- uses : actions/setup-go@v5
35-
36- - name : Build with GoReleaser
37- uses : goreleaser/goreleaser-action@v5
21+ - name : Free disk space
22+ uses : jlumbroso/free-disk-space@main
3823 with :
39- distribution : goreleaser
40- version : " ~> v2"
41- args : release --clean --split
42- env :
43- GITHUB_TOKEN : ${{ secrets.GH_TOKEN }}
44- GOOS : ${{ matrix.goos }}
45- GOARCH : ${{ matrix.goarch }}
46-
47- - name : Upload artifacts
48- uses : actions/upload-artifact@v4
49- with :
50- name : dist-${{ matrix.goos }}-${{ matrix.goarch }}
51- path : dist/**/*
52- retention-days : 1
24+ tool-cache : false
25+ android : true
26+ dotnet : true
27+ haskell : true
28+ large-packages : true
29+ docker-images : true
30+ swap-storage : true
5331
54- release :
55- runs-on : ubuntu-latest
56- needs : build
57- if : github.repository_owner == 'ctrlplanedev'
58- steps :
5932 - name : Checkout
6033 uses : actions/checkout@v4
6134 with :
@@ -64,19 +37,12 @@ jobs:
6437 - name : Set up Go
6538 uses : actions/setup-go@v5
6639
67- - name : Download all artifacts
68- uses : actions/download-artifact@v4
69- with :
70- path : dist
71- pattern : dist-*
72- merge-multiple : true
73-
74- - name : Merge and Release
40+ - name : Run GoReleaser
7541 uses : goreleaser/goreleaser-action@v5
7642 with :
7743 distribution : goreleaser
7844 version : " ~> v2"
79- args : continue --merge
45+ args : release --clean
8046 env :
8147 GITHUB_TOKEN : ${{ secrets.GH_TOKEN }}
8248
You can’t perform that action at this time.
0 commit comments