2022-11-28 03:17:59 +00:00
|
|
|
name: "Build and deploy to Netlify"
|
|
|
|
on:
|
|
|
|
push:
|
|
|
|
branches:
|
|
|
|
- master
|
2023-04-09 05:42:13 +00:00
|
|
|
- content/*
|
2023-02-27 10:45:14 +00:00
|
|
|
workflow_run:
|
|
|
|
workflows:
|
|
|
|
- "Update webring"
|
|
|
|
types:
|
|
|
|
- "completed"
|
2023-04-24 03:07:14 +00:00
|
|
|
env:
|
|
|
|
NETLIFY_AUTH_TOKEN: ${{ secrets.NETLIFY_ACCESS_TOKEN }}
|
|
|
|
NETLIFY_SITE_ID: ${{ secrets.NETLIFY_SITE_ID }}
|
2022-11-28 03:17:59 +00:00
|
|
|
jobs:
|
|
|
|
build:
|
|
|
|
runs-on: ubuntu-latest
|
|
|
|
steps:
|
|
|
|
- uses: actions/checkout@v3
|
2023-04-10 03:39:12 +00:00
|
|
|
with:
|
|
|
|
fetch-depth: 0
|
2023-04-21 08:37:20 +00:00
|
|
|
- uses: cachix/install-nix-action@v20
|
2022-11-28 03:17:59 +00:00
|
|
|
with:
|
|
|
|
nix_path: nixpkgs=channel:nixpkgs-unstable
|
2023-04-10 16:04:38 +00:00
|
|
|
- name: Fetch all 'content/' branches
|
|
|
|
run: |
|
2023-04-10 16:32:18 +00:00
|
|
|
git fetch origin +refs/heads/content/*:refs/heads/content/*
|
2023-04-24 03:07:14 +00:00
|
|
|
- run: |
|
|
|
|
nix develop
|
|
|
|
make build
|
|
|
|
netlify deploy
|