update all the makefiles (#111)

* update all the makefiles

* add back openapi

* update cache package

* fix cache

* update go mod
This commit is contained in:
Asim Aslam
2021-05-19 10:36:07 +01:00
committed by GitHub
parent a94f032acd
commit f3ca93b789
17 changed files with 160 additions and 71 deletions

View File

@@ -43,35 +43,17 @@ jobs:
go get -u github.com/golang/protobuf/protoc-gen-go
go install
- name: Install redoc cli
run: |
# https://github.com/actions/virtual-environments/issues/599
sudo npm install -g redoc-cli
- name: Install openapi plugin
working-directory: micro/cmd/protoc-gen-openapi
run: |
go install
# - name: Install hugo
# run: sudo snap install hugo --channel=extended
- name: Generate openapi spec and publish the api
working-directory: services
run: |
go run cmd/publisher/main.go .
env:
MICRO_ADMIN_TOKEN: ${{ secrets.MICRO_ADMIN_TOKEN }}
# - name: Deploy
# if: github.ref == 'refs/heads/master'
# uses: s0/git-publish-subdir-action@develop
# env:
# REPO: self
# BRANCH: gh-pages
# FOLDER: services/docs
# GITHUB_TOKEN: ${{ secrets.GH_PAT }}
- name: Generate package
working-directory: services
env: