add tech-event 2024-12 #1905
This file contains 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: | |
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@v30 | |
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 |