Skip to content

bump version

bump version #32

Workflow file for this run

name: Generate Project Documentation
on:
push:
branches:
- main
pull_request:
jobs:
generate_docs:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: Setup Node
uses: actions/setup-node@v2
with:
node-version: '14'
- name: Cache node modules
uses: actions/cache@v2
env:
cache-name: cache-node-modules
with:
# npm cache files are stored in `~/.npm` on Linux/macOS
path: ~/.npm
key: ${{ runner.os }}-build-${{ env.cache-name }}-${{ hashFiles('**/package-lock.json') }}
restore-keys: |
${{ runner.os }}-build-${{ env.cache-name }}-
${{ runner.os }}-build-
${{ runner.os }}-
- run: npm i
- run: npm run build-docs
if: github.ref == 'refs/heads/main'
name: Build Stable Docs
- run: npm run build-dev-docs
if: github.ref != 'refs/heads/main'
name: Build Dev Docs
- name: Deploy Stable Docs
if: github.ref == 'refs/heads/main'
uses: peaceiris/actions-gh-pages@v3
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
publish_dir: ./dist/doc
destination_dir: stable
- name: Deploy Dev Docs
if: github.ref != 'refs/heads/main'
uses: peaceiris/actions-gh-pages@v3
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
publish_dir: ./dist/doc
destination_dir: dev