mirror of
https://github.com/kevin-DL/services.git
synced 2026-01-11 19:04:35 +00:00
Update generate.yml
This commit is contained in:
19
.github/workflows/generate.yml
vendored
19
.github/workflows/generate.yml
vendored
@@ -45,14 +45,12 @@ jobs:
|
|||||||
run: |
|
run: |
|
||||||
go install
|
go install
|
||||||
|
|
||||||
- name: install postman converter
|
- name: install prettier
|
||||||
working-directory: services
|
working-directory: services
|
||||||
run: |
|
run: |
|
||||||
sudo npm install -g openapi-to-postmanv2
|
|
||||||
sudo npm install -g prettier
|
sudo npm install -g prettier
|
||||||
openapi2postmanv2 -h
|
|
||||||
|
|
||||||
- name: Generate package
|
- name: Generate clients
|
||||||
working-directory: services
|
working-directory: services
|
||||||
if: github.ref == 'refs/heads/master'
|
if: github.ref == 'refs/heads/master'
|
||||||
env:
|
env:
|
||||||
@@ -63,19 +61,6 @@ jobs:
|
|||||||
go install;
|
go install;
|
||||||
cd ../..;
|
cd ../..;
|
||||||
clients .
|
clients .
|
||||||
|
|
||||||
- name: Generate beta package
|
|
||||||
working-directory: services
|
|
||||||
if: github.ref == 'refs/heads/beta'
|
|
||||||
env:
|
|
||||||
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}
|
|
||||||
IS_BETA: yup
|
|
||||||
run: |
|
|
||||||
pwd
|
|
||||||
cd cmd/clients;
|
|
||||||
go install;
|
|
||||||
cd ../..;
|
|
||||||
clients .
|
|
||||||
|
|
||||||
- uses: EndBug/add-and-commit@v7
|
- uses: EndBug/add-and-commit@v7
|
||||||
with:
|
with:
|
||||||
|
|||||||
Reference in New Issue
Block a user