-
Notifications
You must be signed in to change notification settings - Fork 6
43 lines (38 loc) · 1.02 KB
/
upload.yaml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
name: jzero-upload-examples-ci
on:
push:
branches:
- main
jobs:
golangci:
name: ci
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v3
with:
fetch-depth: 0
- uses: actions/setup-go@v2
with:
go-version: '1.22.3'
- name: Install Jzero and Grum
run: |
go install
jzero check
go install github.com/jaronnie/grum@latest
- name: upload
run: |
GITHUB_TOKEN=${{ secrets.ACCESS_TOKEN }} grum clone https://github.com/jzero-io/examples
cd examples
git fetch
rm -rf quickstart
jzero new quickstart
cd quickstart && jzero gen
jzero gen swagger
jzero gen sdk
jzero gen zrpcclient
go mod tidy
go run main.go version
git add .
git diff-index --quiet HEAD || git commit -m "chore(quickstart): update quickstart"
git diff-index --quiet HEAD || git push -f