mirror of
https://github.com/valitydev/swag-payments.git
synced 2024-11-06 09:35:22 +00:00
b1f2846690
* Add gh-pages workflow * Review fixes Co-authored-by: Andrew Mayorov <encube.ul@gmail.com> Co-authored-by: Andrew Mayorov <encube.ul@gmail.com>
29 lines
668 B
YAML
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"
|