2023-02-05 13:03:13 +00:00
|
|
|
name: Docs
|
|
|
|
|
|
|
|
on:
|
|
|
|
push:
|
2023-02-05 13:14:22 +00:00
|
|
|
branches:
|
|
|
|
- main
|
2023-02-05 13:03:13 +00:00
|
|
|
workflow_dispatch:
|
|
|
|
|
|
|
|
permissions:
|
|
|
|
contents: read
|
|
|
|
pages: write
|
|
|
|
id-token: write
|
|
|
|
|
|
|
|
concurrency:
|
|
|
|
group: "pages"
|
|
|
|
cancel-in-progress: true
|
|
|
|
|
|
|
|
jobs:
|
|
|
|
deploy:
|
|
|
|
environment:
|
|
|
|
name: github-pages
|
|
|
|
url: ${{ steps.deployment.outputs.page_url }}
|
|
|
|
runs-on: ubuntu-latest
|
|
|
|
steps:
|
|
|
|
- uses: actions/checkout@v3
|
|
|
|
- uses: pnpm/action-setup@v2
|
|
|
|
with:
|
|
|
|
version: 7
|
|
|
|
- uses: actions/setup-node@v3
|
|
|
|
with:
|
|
|
|
node-version: 18
|
|
|
|
cache: "pnpm"
|
|
|
|
|
|
|
|
- run: pnpm install
|
|
|
|
- run: pnpm run build
|
|
|
|
|
|
|
|
- uses: actions/configure-pages@v3
|
|
|
|
- uses: actions/upload-pages-artifact@v1
|
|
|
|
with:
|
|
|
|
path: "./docs"
|
|
|
|
- id: deployment
|
|
|
|
uses: actions/deploy-pages@v1
|