formhero/.github/workflows/docs.yaml
2023-02-05 14:03:13 +01:00

42 lines
797 B
YAML

name: Docs
on:
push:
branches: [$default-branch]
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