This commit is contained in:
parent
52a5196f38
commit
293bc62673
24 changed files with 14049 additions and 423 deletions
29
.forgejo/workflows/build-and-publish.yaml
Normal file
29
.forgejo/workflows/build-and-publish.yaml
Normal file
|
@ -0,0 +1,29 @@
|
|||
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
|
Loading…
Add table
Add a link
Reference in a new issue