From f591d5756f2227530082fb9d51e5642dc0fb9766 Mon Sep 17 00:00:00 2001 From: Asim Aslam Date: Wed, 27 Oct 2021 16:03:35 +0100 Subject: [PATCH] Update and rename publish.yml to generate.yml --- .../workflows/{publish.yml => generate.yml} | 33 ++----------------- 1 file changed, 2 insertions(+), 31 deletions(-) rename .github/workflows/{publish.yml => generate.yml} (69%) diff --git a/.github/workflows/publish.yml b/.github/workflows/generate.yml similarity index 69% rename from .github/workflows/publish.yml rename to .github/workflows/generate.yml index a6e0b72..c0e2626 100644 --- a/.github/workflows/publish.yml +++ b/.github/workflows/generate.yml @@ -1,9 +1,8 @@ -name: Publish APIs & Clients +name: Generate Clients & Examples on: [push] jobs: - docs: - name: Generate docs + generate: runs-on: ubuntu-latest steps: - name: Set up Go 1.13 @@ -53,14 +52,6 @@ jobs: sudo npm install -g prettier 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 working-directory: services if: github.ref == 'refs/heads/master' @@ -89,23 +80,3 @@ jobs: - uses: EndBug/add-and-commit@v7 with: 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