mirror of
https://github.com/chenasraf/simple-scaffold.git
synced 2026-05-18 01:29:09 +00:00
31 lines
708 B
YAML
31 lines
708 B
YAML
name: Documentation
|
|
|
|
on:
|
|
push:
|
|
branches:
|
|
- master
|
|
|
|
permissions:
|
|
contents: write
|
|
|
|
jobs:
|
|
docs:
|
|
name: Build Documentation
|
|
runs-on: ubuntu-latest
|
|
# if: "contains(github.event.head_commit.message, 'chore(release)')"
|
|
steps:
|
|
- uses: actions/checkout@v4
|
|
- uses: actions/setup-node@v4
|
|
with:
|
|
node-version: 20
|
|
- run: npm i -g pnpm
|
|
- run: |
|
|
pnpm install --frozen-lockfile
|
|
cd docs && pnpm install --frozen-lockfile
|
|
- run: pnpm docs:build
|
|
- name: Deploy on GitHub Pages
|
|
uses: peaceiris/actions-gh-pages@v3
|
|
with:
|
|
github_token: ${{ secrets.GITHUB_TOKEN }}
|
|
publish_dir: ./docs/build
|