-
Notifications
You must be signed in to change notification settings - Fork 19
163 lines (148 loc) · 5.14 KB
/
Copy pathupload.yaml
File metadata and controls
163 lines (148 loc) · 5.14 KB
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
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
name: jzero-upload-examples-ci
on:
push:
branches:
- main
paths-ignore:
- 'docs/**'
- '**.md'
jobs:
upload:
name: upload
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v7
with:
fetch-depth: 0
- uses: actions/setup-go@v6
with:
go-version: '1.25.0'
- name: Install Jzero and Grum
run: |
cd cmd/jzero
go install
go install github.com/jaronnie/grum@latest
- name: upload examples
run: |
rm -rf examples
GITHUB_TOKEN=${{ secrets.ACCESS_TOKEN }} grum clone https://github.com/jzero-io/examples
cd examples
git config user.name "dependabot[bot]"
git config user.email "49699333+dependabot[bot]@users.noreply.github.com"
rm -rf simpleapi
jzero new simpleapi
cd simpleapi
jzero add api user
jzero gen
go get github.com/jzero-io/jzero@${{ github.sha }}
go mod tidy
jzero new helloworld --serverless --mono
cd plugins/helloworld
jzero add api helloworld
jzero gen
go get github.com/jzero-io/jzero@${{ github.sha }}
go mod tidy
cd ../..
jzero serverless build
go mod tidy
jzero gen swagger
jzero format --git-change=false
go run main.go version
git add .
git diff-index --quiet HEAD || git commit -m "chore(simpleapi): update simpleapi"
git push -f
cd ..
rm -rf simpleapi-with-model-redis
jzero new simpleapi-with-model-redis --features model,redis
cd simpleapi-with-model-redis
jzero add api user
jzero add sql user
jzero gen
go get github.com/jzero-io/jzero@${{ github.sha }}
go mod tidy
jzero gen swagger
jzero format --git-change=false
go run main.go version
git add .
git diff-index --quiet HEAD || git commit -m "chore(simpleapi-with-model-redis): update simpleapi-with-model-redis"
git push -f
cd ..
rm -rf simplegateway
jzero new simplegateway --frame gateway
cd simplegateway
jzero add proto user
jzero gen
go get github.com/jzero-io/jzero@${{ github.sha }}
go mod tidy
jzero new helloworld --frame gateway --serverless --mono
cd plugins/helloworld
jzero add proto helloworld
jzero gen
go get github.com/jzero-io/jzero@${{ github.sha }}
go mod tidy
cd ../..
jzero serverless build
go mod tidy
jzero gen swagger
jzero gen zrpcclient
jzero format --git-change=false
go run main.go version
git add .
git diff-index --quiet HEAD || git commit -m "chore(simplegateway): update simplegateway"
git push -f
cd ..
rm -rf simplegateway-with-model-redis
jzero new simplegateway-with-model-redis --frame gateway --features model,redis
cd simplegateway-with-model-redis
jzero add proto user
jzero add sql user
jzero gen
go get github.com/jzero-io/jzero@${{ github.sha }}
go mod tidy
jzero gen swagger
jzero gen zrpcclient
jzero format --git-change=false
go run main.go version
git add .
git diff-index --quiet HEAD || git commit -m "chore(simplegateway-with-model-redis): update simplegateway-with-model-redis"
git push -f
cd ..
rm -rf simplerpc
jzero new simplerpc --frame rpc
cd simplerpc
jzero add proto user
go get github.com/jzero-io/jzero@${{ github.sha }}
go mod tidy
jzero new helloworld --frame rpc --serverless --mono
cd plugins/helloworld
jzero add proto helloworld
jzero gen
go get github.com/jzero-io/jzero@${{ github.sha }}
go mod tidy
cd ../..
jzero serverless build
go mod tidy
jzero gen swagger
jzero gen zrpcclient
jzero format --git-change=false
go run main.go version
git add .
git diff-index --quiet HEAD || git commit -m "chore(simplerpc): update simplerpc"
git push -f
cd ..
rm -rf simplerpc-with-model-redis
jzero new simplerpc-with-model-redis --frame rpc --features model,redis
cd simplerpc-with-model-redis
jzero add proto user
jzero add sql user
jzero gen
go get github.com/jzero-io/jzero@${{ github.sha }}
go mod tidy
jzero gen swagger
jzero gen zrpcclient
jzero format --git-change=false
go run main.go version
git add .
git diff-index --quiet HEAD || git commit -m "chore(simplerpc-with-model-redis): update simplerpc-with-model-redis"
git push -f