Skip to content

Update vocdoni-api docs by commit 4e9a11e #158

Update vocdoni-api docs by commit 4e9a11e

Update vocdoni-api docs by commit 4e9a11e #158

name: Publish to GH Pages
on:
workflow_dispatch:
push:
branches:
- main
jobs:
publish_to_ghpages:
name: Publish to GH Pages
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v3
- name: Set up NodeJS
uses: actions/setup-node@v3
with:
node-version: 18
cache: yarn
- name: Install dependencies
run: yarn install --frozen-lockfile
- name: Build the Portal and generate the API docs
run: yarn re-gen && yarn build
- name: Deploy to GH Pages
uses: peaceiris/actions-gh-pages@v3
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
publish_dir: ./build
publish_branch: gh-pages
# You can swap them out with your own user credentials.
user_name: github-actions[bot]
user_email: 41898282+github-actions[bot]@users.noreply.github.com