Skip to content

Commit

Permalink
go client ci deployment
Browse files Browse the repository at this point in the history
  • Loading branch information
rubenfiszel committed Oct 14, 2022
1 parent ef904aa commit be0c434
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 19,459 deletions.
4 changes: 4 additions & 0 deletions .github/workflows/go_on_release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,8 @@ on:
push:
tags:
- "v*"
workflow_dispatch:

env:
repo: windmill-go-client

Expand All @@ -11,8 +13,10 @@ jobs:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: actions/setup-go@v3
- name: generate_go
run: |
go install github.com/deepmap/oapi-codegen/cmd/oapi-codegen@latest
cd go-client
rm .gitignore
./build.sh
Expand Down
4 changes: 2 additions & 2 deletions go-client/build.sh
Original file line number Diff line number Diff line change
Expand Up @@ -10,5 +10,5 @@ npx @redocly/openapi-cli@latest bundle openapi2.yaml --ext json > openapi-bundle

rm -rf api/ || true
mkdir -p api
oapi-codegen -old-config-style --package=windmill_api --generate=types,client openapi-bundled.json > api/windmill_api.gen.go
rm openapi*
~/go/bin/oapi-codegen -old-config-style --package=windmill_api --generate=types,client openapi-bundled.json > api/windmill_api.gen.go
rm openapi*
Loading

0 comments on commit be0c434

Please sign in to comment.