Repository navigation
feat(ui): brand gradient hero, polished chapter cards, animated glow #24
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 | ||
|
Check failure on line 1 in .github/workflows/deploy.yml
|
||
| on: | ||
| push: | ||
| branches: [main] | ||
| pull_request: | ||
| workflow_dispatch: | ||
| permissions: | ||
| contents: read | ||
| pages: write | ||
| id-token: write | ||
| concurrency: | ||
| group: pages | ||
| cancel-in-progress: false | ||
| jobs: | ||
| lint: | ||
| name: Lint (sync, frontmatter, mermaid) | ||
| if: github.event_name == "pull_request" | ||
| runs-on: ubuntu-latest | ||
| steps: | ||
| - uses: actions/checkout@v4 | ||
| - uses: actions/setup-node@v4 | ||
| with: { node-version: 24, cache: npm } | ||
| - run: npm ci | ||
| - run: npm run lint:sync | ||
| - run: npm run lint:frontmatter | ||
| - run: npm run lint:mermaid | ||
| build: | ||
| name: Build site | ||
| needs: lint | ||
| runs-on: ubuntu-latest | ||
| steps: | ||
| - uses: actions/checkout@v4 | ||
| - uses: actions/setup-node@v4 | ||
| with: { node-version: 24, cache: npm } | ||
| - run: npm ci | ||
| - run: npm run build | ||
| - uses: actions/upload-pages-artifact@v3 | ||
| with: { path: dist } | ||
| deploy: | ||
| name: Deploy to GitHub Pages | ||
| if: github.event_name == "push" && github.ref == "refs/heads/main" | ||
| needs: build | ||
| runs-on: ubuntu-latest | ||
| environment: | ||
| name: github-pages | ||
| url: ${{ steps.deployment.outputs.page_url }} | ||
| steps: | ||
| - id: deployment | ||
| uses: actions/deploy-pages@v4 | ||