Skip to content

chore(site): update #38

chore(site): update

chore(site): update #38

Workflow file for this run

name: site
on:
pull_request:
branches:
- main
paths:
- src/**
- .internal/site/**
- .github/workflows/site.yml
push:
branches:
- main
paths:
- src/**
- .internal/site/**
- .github/workflows/site.yml
workflow_dispatch:
permissions:
contents: read
pages: write
id-token: write
concurrency:
group: pages
cancel-in-progress: false
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: actions/configure-pages@v5
- uses: ./.github/actions/setup-node
- run: cd .internal/site && pnpm i
- run: cd .internal/site && pnpm build
- uses: actions/upload-pages-artifact@v3
with:
path: .internal/site/.vitepress/dist
deploy:
if: github.ref == 'refs/heads/main'
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