Skip to content

Site won't deploy — changes the default branch to publish to main #41

Site won't deploy — changes the default branch to publish to main

Site won't deploy — changes the default branch to publish to main #41

Workflow file for this run

name: Build with Nix
on:
push:
branches:
- main
jobs:
build:
name: Build
runs-on: ubuntu-24.04
steps:
- name: Checkout
uses: actions/checkout@v1
- name: 'Cache /nix/store'
uses: actions/cache@v1
with:
path: /nix/store
key: nix-store-${{ runner.OS }}-${{ hashFiles('.config/nix/*') }}
restore-keys: |
nix-store-${{ runner.OS }}-${{ hashFiles('.config/nix/*') }}
nix-store-${{ runner.OS }}-
- name: Install Nix
uses: cachix/install-nix-action@v13
- name: Build
run: |
PATH=scripts:$PATH
nyx gen-nix-files
nix-build
./result/bin/site build
- name: 'Deploy to GitHub Pages'
uses: peaceiris/actions-gh-pages@v3
with:
deploy_key: ${{ secrets.ACTIONS_DEPLOY_KEY }}
external_repository: 'steshaw/steshaw.github.io'
publish_branch: 'main'
publish_dir: '_site'