plugins: improve builtin registry UX #18
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 (GitHub Pages) | |
| on: | |
| push: | |
| branches: [main] | |
| paths: | |
| - "docs-site/**" | |
| - ".github/workflows/docs.yml" | |
| permissions: | |
| contents: read | |
| pages: write | |
| id-token: write | |
| concurrency: | |
| group: pages | |
| cancel-in-progress: true | |
| jobs: | |
| build: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/checkout@v4 | |
| - uses: actions/setup-node@v4 | |
| with: | |
| node-version: 20 | |
| cache: npm | |
| cache-dependency-path: docs-site/package-lock.json | |
| - name: Install | |
| working-directory: docs-site | |
| run: npm ci | |
| - name: Build | |
| working-directory: docs-site | |
| env: | |
| # Project pages need an explicit base path. | |
| VITEPRESS_BASE: "/forgeui/" | |
| run: npm run build | |
| - name: Verify Pages dist (base path + assets) | |
| run: | | |
| node scripts/verify-docs-dist.mjs docs-site/.vitepress/dist /forgeui/ | |
| - name: Setup Pages | |
| uses: actions/configure-pages@v5 | |
| with: | |
| enablement: true | |
| - name: Upload artifact | |
| uses: actions/upload-pages-artifact@v3 | |
| with: | |
| path: docs-site/.vitepress/dist | |
| deploy: | |
| runs-on: ubuntu-latest | |
| needs: build | |
| environment: | |
| name: github-pages | |
| url: ${{ steps.deployment.outputs.page_url }} | |
| steps: | |
| - name: Deploy | |
| id: deployment | |
| uses: actions/deploy-pages@v4 |