Skip to content

Deploy

Deploy #8921

Workflow file for this run

on:
push:
branches:
- main
pull_request:
workflow_dispatch:
schedule:
- cron: "0 * * * *" # Run every hour
name: Deploy
jobs:
build_site:
runs-on: ubuntu-latest
steps:
- uses: DeterminateSystems/nix-installer-action@main
- uses: DeterminateSystems/magic-nix-cache-action@main
- uses: actions/checkout@v4
- name: 📚 Install node dependencies
run: nix develop -c pnpm install
- name: 🕷️ Scrape
run: nix develop -c pnpm scrape
- name: 🔨 Build
run: nix develop -c pnpm build
- name: 📤 Upload
uses: actions/upload-pages-artifact@v3
with:
path: "build/"
deploy:
needs: build_site
runs-on: ubuntu-latest
permissions:
pages: write
id-token: write
environment:
name: github-pages
url: ${{ steps.deployment.outputs.page_url }}
steps:
- name: 🚀 Deploy
id: deployment
uses: actions/deploy-pages@v4