swag-payments/.github/workflows/gh-pages.yml
Pavel Popov b1f2846690
Add gh-pages workflow (#52)
* Add gh-pages workflow

* Review fixes

Co-authored-by: Andrew Mayorov <encube.ul@gmail.com>

Co-authored-by: Andrew Mayorov <encube.ul@gmail.com>
2022-06-22 16:20:12 +03:00

29 lines
668 B
YAML

name: gh-pages
on:
push:
branches: [v2]
env:
NODEJS_VERSION: "16"
jobs:
publish:
runs-on: ubuntu-latest
steps:
- name: Checkout repository
uses: actions/checkout@v3
- name: Setup Node.js
uses: actions/setup-node@v3
with:
node-version: ${{ env.NODEJS_VERSION }}
cache: npm
- run: npm install
- name: Bundle specification
run: npm run build -- ./dist
- name: Publish ReDoc on Github Pages
uses: peaceiris/actions-gh-pages@v3
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
publish_dir: ./dist
exclude_assets: "swagger-ui"