ci: run on release publish and creation
This commit is contained in:
parent
0b0ba33dce
commit
8bea99a953
|
@ -2,7 +2,7 @@ name: passbook-on-release
|
||||||
|
|
||||||
on:
|
on:
|
||||||
release:
|
release:
|
||||||
types: [published]
|
types: [published, created]
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
# Build
|
# Build
|
||||||
|
@ -30,8 +30,10 @@ jobs:
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v1
|
- uses: actions/checkout@v1
|
||||||
- uses: actions/setup-go@v2
|
- uses: actions/setup-go@v2
|
||||||
version: "^1.15"
|
with:
|
||||||
- run: |
|
go-version: "^1.15"
|
||||||
|
- name: prepare go api client
|
||||||
|
run: |
|
||||||
cd proxy
|
cd proxy
|
||||||
go get -u github.com/go-swagger/go-swagger/cmd/swagger
|
go get -u github.com/go-swagger/go-swagger/cmd/swagger
|
||||||
swagger generate client -f ../swagger.yaml -A passbook -t pkg/
|
swagger generate client -f ../swagger.yaml -A passbook -t pkg/
|
||||||
|
|
Reference in New Issue