@@ -45,17 +45,17 @@ jobs:
4545 ref : ${{ github.event.pull_request.head.sha }}
4646
4747 - name : Set up Go compiler
48- uses : actions/setup-go@v4
48+ uses : actions/setup-go@v5
4949 with :
5050 go-version-file : go.mod
5151 check-latest : true
5252
5353 - name : Fetch version from git history
5454 if : github.ref_protected == true
55- uses : codfish/semantic-release-action@v2
55+ uses : codfish/semantic-release-action@v3
5656 id : semantic
5757 with :
58- dry_run : true
58+ dry-run : true
5959 env :
6060 GITHUB_TOKEN : ${{ secrets.GITHUB_TOKEN }}
6161
@@ -67,10 +67,15 @@ jobs:
6767 if : github.ref_protected == false
6868 run : UPX=-9 PLATFORM=${{ matrix.platform }} make build
6969
70+ - name : Format platform
71+ id : platform
72+ run : |
73+ echo "platform=$(echo ${{ matrix.platform }} | tr "/" "-")" >>"$GITHUB_OUTPUT"
74+
7075 - name : Upload binary
71- uses : actions/upload-artifact@v3
76+ uses : actions/upload-artifact@v4
7277 with :
73- name : binaries
78+ name : binary-${{ steps.platform.outputs.platform }}
7479 path : bin/*
7580
7681 container :
@@ -92,10 +97,10 @@ jobs:
9297 ref : ${{ github.event.pull_request.head.sha }}
9398
9499 - name : Fetch version from git history
95- uses : codfish/semantic-release-action@v2
100+ uses : codfish/semantic-release-action@v3
96101 id : semantic
97102 with :
98- dry_run : true
103+ dry-run : true
99104 env :
100105 GITHUB_TOKEN : ${{ secrets.GITHUB_TOKEN }}
101106
@@ -124,7 +129,7 @@ jobs:
124129 password : ${{ secrets.GITHUB_TOKEN }}
125130
126131 - name : Build and push container image
127- uses : docker/build-push-action@v5
132+ uses : docker/build-push-action@v6
128133 with :
129134 file : build/package/Dockerfile
130135 cache-from : type=registry,ref=${{ env.CONTAINER_IMAGE }}:main
@@ -157,12 +162,13 @@ jobs:
157162 uses : actions/checkout@v4
158163
159164 - name : Download release artifacts
160- uses : actions/download-artifact@v3
165+ uses : actions/download-artifact@v4
161166 with :
162- name : binaries
163167 path : release
168+ pattern : binary-*
169+ merge-multiple : true
164170
165171 - name : Create release
166- uses : codfish/semantic-release-action@v2
172+ uses : codfish/semantic-release-action@v3
167173 env :
168174 GITHUB_TOKEN : ${{ secrets.GITHUB_TOKEN }}
0 commit comments