Skip to content

Refresh readme (#185) #129

Refresh readme (#185)

Refresh readme (#185) #129

Workflow file for this run

name: Generate Doc
on:
push:
branches: [main]
defaults:
run:
shell: bash
jobs:
docs:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v3
- name: Setup node
uses: actions/setup-node@v3
with:
node-version: 20.x
cache: npm
- name: Install dependencies
run: npm ci
- name: Build packages
run: npm run build
- name: Create Doc
run: npm run doc
- name: Push Doc
run: |
BRANCH=gh-pages
git config --local user.email "[email protected]"
git config --local user.name "GitHub Action"
git fetch origin $BRANCH
git reset --mixed origin/$BRANCH
git add -f docs
git commit -m "Updating documentation: $GITHUB_ACTOR"
git push origin HEAD:$BRANCH