Skip to content

refactor: simplify env config to a local .env (retire S3 .env.shared/… #13

refactor: simplify env config to a local .env (retire S3 .env.shared/…

refactor: simplify env config to a local .env (retire S3 .env.shared/… #13

Workflow file for this run

name: 📚 Deploy Docs
on:
# Deploy on pushes to main that touch the docs (or the workflow itself).
push:
branches: [main]
paths:
- "docs/**"
- ".github/workflows/deploy-docs.yml"
# Allow manual runs from the Actions tab.
workflow_dispatch:
# Grant GITHUB_TOKEN the permissions required to deploy to GitHub Pages.
permissions:
contents: read
pages: write
id-token: write
# Allow one concurrent deployment; don't cancel an in-progress deploy so a
# publish can finish cleanly.
concurrency:
group: pages
cancel-in-progress: false
jobs:
build:
name: Build VitePress site
runs-on: ubuntu-latest
env:
# No lockfile is committed (private @artsy packages resolve on install),
# so let the install write one instead of failing the immutability check.
YARN_ENABLE_IMMUTABLE_INSTALLS: "false"
steps:
- name: Checkout
uses: actions/checkout@v4
with:
fetch-depth: 0 # needed for VitePress lastUpdated (git history)
- name: Set up Node
uses: actions/setup-node@v4
with:
node-version-file: ".nvmrc"
- name: Enable Corepack (Yarn 4)
run: corepack enable
- name: Configure Pages
uses: actions/configure-pages@v5
- name: Install dependencies
run: yarn install
- name: Build docs
run: yarn docs:build
- name: Upload artifact
uses: actions/upload-pages-artifact@v3
with:
path: docs/.vitepress/dist
deploy:
name: Deploy to GitHub Pages
needs: build
runs-on: ubuntu-latest
environment:
name: github-pages
url: ${{ steps.deployment.outputs.page_url }}
steps:
- name: Deploy to GitHub Pages
id: deployment
uses: actions/deploy-pages@v4