docs: add scheme modifier showcase to comparison page #17
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: Deploy Documentation | |
| on: | |
| push: | |
| branches: [main] | |
| paths: | |
| - "docs/**" | |
| - ".github/workflows/deploy-docs.yml" | |
| workflow_dispatch: | |
| # Allow only one concurrent deployment | |
| concurrency: | |
| group: "pages" | |
| cancel-in-progress: false | |
| # Sets permissions of the GITHUB_TOKEN to allow deployment to GitHub Pages | |
| permissions: | |
| contents: read | |
| pages: write | |
| id-token: write | |
| jobs: | |
| build: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - name: Checkout 🛎️ | |
| uses: actions/checkout@v5 | |
| - name: Setup pnpm 🔧 | |
| uses: pnpm/action-setup@v4 | |
| - name: Setup Node.js 🔧 | |
| uses: actions/setup-node@v6 | |
| with: | |
| node-version: "lts/*" | |
| check-latest: true | |
| cache: "pnpm" | |
| - name: Install dependencies 🪄 | |
| run: | | |
| cd docs | |
| pnpm install --frozen-lockfile | |
| - name: Build documentation 💎 | |
| run: | | |
| cd docs | |
| pnpm run build | |
| - name: Setup Pages 📄 | |
| uses: actions/configure-pages@v5 | |
| - name: Upload artifact 🚀 | |
| uses: actions/upload-pages-artifact@v3 | |
| with: | |
| path: ./docs/dist | |
| deploy: | |
| 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 |