Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
25 changes: 14 additions & 11 deletions .github/workflows/deploy-docs.yml
Original file line number Diff line number Diff line change
@@ -1,18 +1,24 @@
name: Deploy Documentation
name: Deploy Docs to GitHub Pages

on:
# Runs on pushes targeting the default branch
push:
branches: [main]
branches: ["main"]
paths:
- 'apps/docs/**'
- '.github/workflows/deploy-docs.yml'

# Allows you to run this workflow manually from the Actions tab
workflow_dispatch:

# Sets permissions of the GITHUB_TOKEN to allow deployment to GitHub Pages
permissions:
contents: read
pages: write
id-token: write

# Allow only one concurrent deployment, skipping runs queued between the run in-progress and latest queued.
# However, do NOT cancel in-progress runs as we want to allow these production deployments to complete.
concurrency:
group: "pages"
cancel-in-progress: false
Expand All @@ -27,29 +33,27 @@ jobs:
- name: Setup pnpm
uses: pnpm/action-setup@v4
with:
version: 9
version: 9.0.0

- name: Setup Node
uses: actions/setup-node@v4
with:
node-version: 18
cache: 'pnpm'
node-version: "18"
cache: "pnpm"

- name: Setup Pages
uses: actions/configure-pages@v4

- name: Install dependencies
run: pnpm install --frozen-lockfile

- name: Build docs
run: |
cd apps/docs
pnpm build
- name: Build with Turbo
run: pnpm turbo build --filter=docs

- name: Upload artifact
uses: actions/upload-pages-artifact@v3
with:
path: apps/docs/dist
path: ./apps/docs/dist

deploy:
environment:
Expand All @@ -61,4 +65,3 @@ jobs:
- name: Deploy to GitHub Pages
id: deployment
uses: actions/deploy-pages@v4