ci(governance): wire governance.yml + bump CONSTRAINTS to v0.3.0 #21
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| name: Docs Site | |
| on: | |
| push: | |
| branches: [main] | |
| paths: | |
| - 'website/**' | |
| - '.github/workflows/docs-site.yml' | |
| - 'CHANGELOG.md' | |
| workflow_dispatch: | |
| permissions: | |
| contents: write | |
| pages: write | |
| id-token: write | |
| concurrency: | |
| group: pages | |
| cancel-in-progress: true | |
| jobs: | |
| build: | |
| runs-on: ubuntu-latest | |
| defaults: | |
| run: | |
| working-directory: website | |
| steps: | |
| - uses: actions/checkout@v5 | |
| - uses: actions/setup-node@v5 | |
| with: | |
| node-version: '20' | |
| - name: Install dependencies | |
| run: npm install --no-audit --no-fund | |
| - name: Commit lockfile if generated | |
| run: | | |
| if [ -f package-lock.json ]; then | |
| git config user.email 'github-actions[bot]@users.noreply.github.com' | |
| git config user.name 'github-actions[bot]' | |
| git add package-lock.json || true | |
| git diff --staged --quiet || git commit -m 'chore(website): regenerate package-lock.json' | |
| git push || true | |
| fi | |
| - name: Generate sitemap.xml | |
| run: node scripts/gen-sitemap.mjs | |
| - name: Type check | |
| run: npx tsc --noEmit | |
| - name: Build static export | |
| run: npm run build | |
| - uses: actions/upload-pages-artifact@v3 | |
| with: | |
| path: website/out | |
| deploy: | |
| needs: build | |
| runs-on: ubuntu-latest | |
| environment: | |
| name: github-pages | |
| url: ${{ steps.deployment.outputs.page_url }} | |
| steps: | |
| - id: deployment | |
| uses: actions/deploy-pages@v4 |