mirror of
https://github.com/kevin-DL/services.git
synced 2026-01-23 15:51:24 +00:00
Update and rename publish.yml to generate.yml
This commit is contained in:
@@ -1,9 +1,8 @@
|
|||||||
name: Publish APIs & Clients
|
name: Generate Clients & Examples
|
||||||
on: [push]
|
on: [push]
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
docs:
|
generate:
|
||||||
name: Generate docs
|
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
steps:
|
steps:
|
||||||
- name: Set up Go 1.13
|
- name: Set up Go 1.13
|
||||||
@@ -53,14 +52,6 @@ jobs:
|
|||||||
sudo npm install -g prettier
|
sudo npm install -g prettier
|
||||||
openapi2postmanv2 -h
|
openapi2postmanv2 -h
|
||||||
|
|
||||||
# - name: Generate openapi spec and publish the api
|
|
||||||
# working-directory: services
|
|
||||||
# if: github.ref == 'refs/heads/master'
|
|
||||||
# run: |
|
|
||||||
# go run cmd/publisher/main.go .
|
|
||||||
# env:
|
|
||||||
# MICRO_ADMIN_TOKEN: ${{ secrets.MICRO_ADMIN_TOKEN }}
|
|
||||||
|
|
||||||
- name: Generate package
|
- name: Generate package
|
||||||
working-directory: services
|
working-directory: services
|
||||||
if: github.ref == 'refs/heads/master'
|
if: github.ref == 'refs/heads/master'
|
||||||
@@ -89,23 +80,3 @@ jobs:
|
|||||||
- uses: EndBug/add-and-commit@v7
|
- uses: EndBug/add-and-commit@v7
|
||||||
with:
|
with:
|
||||||
cwd: './services'
|
cwd: './services'
|
||||||
|
|
||||||
# - name: npm install
|
|
||||||
# working-directory: services
|
|
||||||
# if: github.ref == 'refs/heads/master'
|
|
||||||
# run: |
|
|
||||||
# git status
|
|
||||||
# cd clients/ts;
|
|
||||||
# npm install
|
|
||||||
# npm run build
|
|
||||||
# npm publish --access public
|
|
||||||
|
|
||||||
# - name: npm install beta
|
|
||||||
# working-directory: services
|
|
||||||
# if: github.ref == 'refs/heads/beta'
|
|
||||||
# run: |
|
|
||||||
# git status
|
|
||||||
# cd clients/ts;
|
|
||||||
# npm install
|
|
||||||
# npm run build
|
|
||||||
# npm publish --access public --tag beta
|
|
||||||
Reference in New Issue
Block a user