mirror of
https://github.com/hrfee/jfa-go.git
synced 2026-03-18 21:50:33 +01:00
ci: fix stable, add gh token for publishing
haven't done a stable with woodpecker, I hope it works!
This commit is contained in:
@@ -11,11 +11,31 @@ clone:
|
|||||||
depth: 0
|
depth: 0
|
||||||
|
|
||||||
steps:
|
steps:
|
||||||
|
- name: precompile
|
||||||
|
image: docker.io/hrfee/jfa-go-build-docker:latest
|
||||||
|
environment:
|
||||||
|
JFA_GO_SNAPSHOT: y
|
||||||
|
JFA_GO_BUILT_BY:
|
||||||
|
from_secret: BUILT_BY
|
||||||
|
commands:
|
||||||
|
- npm i
|
||||||
|
- make precompile
|
||||||
|
- go mod download
|
||||||
|
- name: test
|
||||||
|
image: docker.io/hrfee/jfa-go-build-docker:latest
|
||||||
|
environment:
|
||||||
|
JFA_GO_SNAPSHOT: y
|
||||||
|
JFA_GO_BUILT_BY:
|
||||||
|
from_secret: BUILT_BY
|
||||||
|
commands:
|
||||||
|
- make test
|
||||||
- name: build
|
- name: build
|
||||||
image: docker.io/hrfee/jfa-go-build-docker:latest
|
image: docker.io/hrfee/jfa-go-build-docker:latest
|
||||||
environment:
|
environment:
|
||||||
JFA_GO_BUILT_BY:
|
JFA_GO_BUILT_BY:
|
||||||
from_secret: BUILT_BY
|
from_secret: BUILT_BY
|
||||||
|
GITHUB_TOKEN:
|
||||||
|
from_secret: GITHUB_TOKEN
|
||||||
commands:
|
commands:
|
||||||
- curl -sfL https://goreleaser.com/static/run > ../goreleaser
|
- curl -sfL https://goreleaser.com/static/run > ../goreleaser
|
||||||
- chmod +x ../goreleaser
|
- chmod +x ../goreleaser
|
||||||
|
|||||||
Reference in New Issue
Block a user