Skip to content

feat(jzero): release v0.28.1 #336

feat(jzero): release v0.28.1

feat(jzero): release v0.28.1 #336

Workflow file for this run

name: jzero-upload-examples-ci
on:
push:
branches:
- main
paths-ignore:
- 'docs/**'
- '**.md'
jobs:
golangci:
name: ci
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4
with:
fetch-depth: 0
- uses: actions/setup-go@v5
with:
go-version: '1.22.3'
- name: Install Jzero and Grum
run: |
go install
jzero check
go install github.com/jaronnie/grum@latest
go install github.com/jzero-io/gorename@latest
- name: upload examples
run: |
GITHUB_TOKEN=${{ secrets.ACCESS_TOKEN }} grum clone https://github.com/jzero-io/examples
cd examples
rm -rf simpleapi
jzero new simpleapi
cd simpleapi && jzero gen
jzero gen swagger
jzero gen sdk
go mod tidy && go mod download
go run main.go version
git config user.name "dependabot[bot]"
git config user.email "49699333+dependabot[bot]@users.noreply.github.com"
git add .
git diff-index --quiet HEAD || git commit -m "chore(simpleapi): update simpleapi"
git push -f
cd ..
rm -rf simplegateway
jzero new simplegateway --frame gateway
cd simplegateway && jzero gen
jzero gen swagger
jzero gen sdk
jzero gen zrpcclient
go mod tidy && go mod download
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 simplerpc
jzero new simplerpc --frame rpc
cd simplerpc && jzero gen
jzero gen swagger
jzero gen zrpcclient
go mod tidy && go mod download
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 simpleapi-serverless
jzero new simpleapi-serverless --frame api --features serverless
cd simpleapi-serverless && jzero gen
jzero gen swagger
go mod tidy && go mod download
go run main.go version
git add .
git diff-index --quiet HEAD || git commit -m "chore(simpleapi-serverless): update simpleapi-serverless"
git push -f
cd ..
# 测试第三方仓库(https://github.com/jzero-io/templates)模板
rm -rf simplerpc-goctl
jzero new simplerpc-goctl --branch rpc-goctl
cd simplerpc-goctl && jzero gen
jzero gen swagger
jzero gen zrpcclient
go mod tidy && go mod download
go build
git add .
git diff-index --quiet HEAD || git commit -m "chore(simplerpc-goctl): update simplerpc-goctl"
git push -f