ci: add deploy workflows #6
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# First pass at a nix-based GHA setup for penumbra-guide. | |
name: Validate nix env for GHA | |
on: | |
push: | |
branches: | |
- main | |
tags: | |
- "v*.*.*" | |
pull_request: | |
branches: | |
- main | |
jobs: | |
check_nix: | |
name: build | |
runs-on: ubuntu-latest | |
steps: | |
- name: git checkout | |
uses: actions/checkout@v4 | |
- name: install nix | |
uses: DeterminateSystems/nix-installer-action@main | |
- name: load nix cache | |
uses: DeterminateSystems/magic-nix-cache-action@main | |
- name: lint nix | |
uses: DeterminateSystems/flake-checker-action@main | |
with: | |
fail-mode: true | |
- name: build static site | |
run: nix develop --command just build | |
- name: view built docroot | |
run: find ./out |