Skip to content

Commit 5b35f8f

Browse files
committed
ci: update release ci
1 parent 85f0510 commit 5b35f8f

File tree

1 file changed

+13
-11
lines changed

1 file changed

+13
-11
lines changed

.github/workflows/release.yml

Lines changed: 13 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -14,17 +14,19 @@ jobs:
1414
with:
1515
fetch-depth: 0
1616

17-
- name: Set up Go
18-
uses: actions/setup-go@v3
19-
with:
20-
go-version: 1.16
21-
2217
- name: Run GoReleaser
23-
uses: goreleaser/goreleaser-action@v2
24-
if: startsWith(github.ref, 'refs/tags/')
25-
with:
26-
distribution: goreleaser
27-
version: latest
28-
args: release --rm-dist
2918
env:
3019
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
20+
PACKAGE_NAME: github.com/cokemine/ServerStatus-goclient
21+
run: |-
22+
docker run \
23+
--rm \
24+
--privileged \
25+
-e GITHUB_TOKEN=${GITHUB_TOKEN} \
26+
-v /var/run/docker.sock:/var/run/docker.sock \
27+
-v $(pwd):/go/src/${PACKAGE_NAME} \
28+
-v $(pwd)/sysroot:/sysroot \
29+
-w /go/src/${PACKAGE_NAME} \
30+
goreleaser/goreleaser-cross \
31+
-f .goreleaser_action.yml \
32+
release --rm-dist

0 commit comments

Comments
 (0)