33 lines
682 B
YAML
33 lines
682 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: Login to Netlify
|
||
|
run: nix develop --command netlify login -auth $NETLIFY_AUTH_TOKEN
|
||
|
|
||
|
- name: Run build
|
||
|
run: nix develop --command netlify build
|
||
|
|
||
|
- name: Deploy
|
||
|
run: nix develop --command netlify deploy
|