Skip to content

GitHub Pages

GitHub Pages #1847

Workflow file for this run

---
name: GitHub Pages
on:
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@V28
with:
nix_path: nixpkgs=channel:nixos-23.11
- name: generate site
run: nix-build -A site
- name: deploy
uses: peaceiris/actions-gh-pages@v4
with:
deploy_key: ${{ secrets.ACTIONS_DEPLOY_KEY }}
publish_dir: ./result