|
|
@ -1,4 +1,4 @@ |
|
|
|
name: goreleaser |
|
|
|
name: release |
|
|
|
|
|
|
|
on: |
|
|
|
push: |
|
|
@ -6,7 +6,7 @@ on: |
|
|
|
- '*' |
|
|
|
|
|
|
|
jobs: |
|
|
|
goreleaser: |
|
|
|
release: |
|
|
|
runs-on: ubuntu-latest |
|
|
|
steps: |
|
|
|
- uses: actions/checkout@v3 |
|
|
@ -17,11 +17,11 @@ jobs: |
|
|
|
with: |
|
|
|
go-version: '>=1.20.1' |
|
|
|
- name: release-build |
|
|
|
run: go build -mod=vendor -ldflags="-s -w -X 'main.Version=${DRONE_TAG}'" -o bin/reverse-${DRONE_TAG}-linux-amd64 |
|
|
|
run: go build -ldflags="-s -w -X 'main.Version=${DRONE_TAG}'" -o bin/reverse-${DRONE_TAG}-linux-amd64 |
|
|
|
- name: release-build-windows |
|
|
|
run: GOOS=windows GOARCH=amd64 go build -mod=vendor -ldflags="-s -w -X 'main.Version=${DRONE_TAG}'" -o bin/reverse-${DRONE_TAG}-windows-amd64.exe |
|
|
|
run: GOOS=windows GOARCH=amd64 go build -ldflags="-s -w -X 'main.Version=${DRONE_TAG}'" -o bin/reverse-${DRONE_TAG}-windows-amd64.exe |
|
|
|
- name: release-build-darwin |
|
|
|
run: GOOS=darwin GOARCH=amd64 go build -mod=vendor -ldflags="-s -w -X 'main.Version=${DRONE_TAG}'" -o bin/reverse-${DRONE_TAG}-darwin-amd64 |
|
|
|
run: GOOS=darwin GOARCH=amd64 go build -ldflags="-s -w -X 'main.Version=${DRONE_TAG}'" -o bin/reverse-${DRONE_TAG}-darwin-amd64 |
|
|
|
- name: Use Go Action |
|
|
|
id: use-go-action |
|
|
|
uses: actions/release-action@main |
|
|
|