This repository was archived by the owner on Aug 15, 2025. It is now read-only.
GitHub Pages #2200
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: GitHub Pages | |
| on: | |
| workflow_dispatch: {} | |
| push: | |
| branches: [master] | |
| schedule: | |
| - cron: '30 2 * * *' # Runs at 02:30 UTC every day | |
| jobs: | |
| gh-pages: | |
| # Only run the job if the repository is section77/website | |
| if: github.repository == 'section77/website' | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/checkout@v4 | |
| - uses: cachix/install-nix-action@v31 | |
| with: | |
| nix_path: nixpkgs=channel:nixos-unstable | |
| - name: generate site | |
| run: nix build .#site | |
| - name: deploy | |
| uses: peaceiris/actions-gh-pages@v4 | |
| with: | |
| deploy_key: ${{ secrets.ACTIONS_DEPLOY_KEY }} | |
| publish_dir: ./result |