lipu-pali/.forgejo/workflows/build-and-deploy.yaml
irl 9d5e8fdcf5
Some checks failed
Build and deploy / lint (push) Failing after 1m7s
feat: build and deploy with netlify
2025-06-03 16:57:36 +01:00

29 lines
616 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 netlify build
- name: Deploy
run: nix develop --command netlify deploy --auth ${{ secrets.NETLIFY_AUTH_TOKEN }}