feat: build and deploy with netlify
All checks were successful
Build and deploy / lint (push) Successful in 2m8s

This commit is contained in:
Iain Learmonth 2025-06-03 16:48:47 +01:00
parent 20d45dca90
commit e6505ca1cb
5 changed files with 131 additions and 1 deletions

View file

@ -0,0 +1,32 @@
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: Generate OpenAPI section
run: nix develop --command npm run docusaurus gen-api-docs api
- name: Run build
run: nix develop --command npm run build
- name: Deploy
run: nix develop --command netlify deploy --auth ${{ secrets.NETLIFY_AUTH_TOKEN }} -s ${{ vars.NETLIFY_SITE_ID }}