Skip to content

build(deps): bump peaceiris/actions-gh-pages from 3 to 4 (#7) #61

build(deps): bump peaceiris/actions-gh-pages from 3 to 4 (#7)

build(deps): bump peaceiris/actions-gh-pages from 3 to 4 (#7) #61

Workflow file for this run

name: github pages
on:
push:
branches:
- main # Set a branch that will trigger a deployment
pull_request:
jobs:
deploy:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
with:
submodules: true # Fetch Hugo themes (true OR recursive)
# fetch-depth: 0 # Fetch all history for .GitInfo and .Lastmod
- name: Setup Nix
uses: cachix/install-nix-action@v26
with:
github_access_token: ${{ secrets.GITHUB_TOKEN }}
- uses: DeterminateSystems/magic-nix-cache-action@v4
- name: Check code format
shell: bash
run: nix develop --command just check
- name: Build
run: nix develop --command just build
- name: Deploy
uses: peaceiris/actions-gh-pages@v4
if: github.ref == 'refs/heads/main'
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
publish_dir: ./public