notes/.forgejo/workflows/build-and-publish.yaml
irl 293bc62673
Some checks failed
Build and deploy / lint (push) Has been cancelled
update
2025-06-20 14:21:33 +01:00

29 lines
663 B
YAML

name: Build and deploy
on:
push:
branches:
- main
jobs:
lint:
runs-on: docker
container:
image: ghcr.io/catthehacker/ubuntu:runner-latest
steps:
- name: Checkout code
uses: actions/checkout@v4
- name: Set up Nix
uses: https://guardianproject.dev/actions/install-nix-action@v31
- name: Install npm dependencies
run: nix develop --command npm install
- name: Run build
run: nix develop --command npx quartz build
- name: Deploy
run: nix develop --command netlify deploy --auth ${{ secrets.NETLIFY_AUTH_TOKEN }} -s ${{ vars.NETLIFY_SITE_ID }} --dir public