Add built-in static syntax highlighting using skylighting #1477
Workflow file for this run
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: "CI" | |
| on: | |
| push: | |
| branches: | |
| - "master" | |
| - "sky" | |
| pull_request: | |
| jobs: | |
| flake-parts-docs: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/checkout@v4 | |
| - name: Install Nix | |
| uses: nixbuild/nix-quick-install-action@v33 | |
| - name: Docs for flake.parts | |
| run: | | |
| # TODO: Define this in Vira or make it part of our flake? | |
| nix build github:hercules-ci/flake.parts-website#checks.x86_64-linux.linkcheck --override-input emanote . | |
| website: | |
| if: github.ref == 'refs/heads/sky' | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/checkout@v4 | |
| - name: Install Nix | |
| uses: nixbuild/nix-quick-install-action@v33 | |
| - name: Docs static site | |
| id: docs | |
| run: | | |
| nix build .#docs | |
| # Cloudflare will then deploy the gh-pages branch via Pages. | |
| - name: Push to gh-pages 🚀 | |
| uses: peaceiris/actions-gh-pages@v4 | |
| with: | |
| github_token: ${{ secrets.GITHUB_TOKEN }} | |
| publish_dir: ./result/ |