Skip to content

chore: typos

chore: typos #766

Workflow file for this run

name: PR Preview
on:
pull_request:
types:
- opened
- reopened
- synchronize
jobs:
pr-preview:
runs-on: ubuntu-latest
env:
mailmap: ${{ secrets.MAILMAP }}
steps:
- name: Checkout ⬇️
uses: actions/checkout@v4
with:
fetch-depth: 0 # we need the commit history for authors
- name: Install Nix ❄️
uses: cachix/install-nix-action@v26
- name: Set up Cachix ♻️
uses: cachix/cachix-action@v14
with:
name: 1lab
skipPush: true
- name: Build the Shakefile 🧰
run: |
hash=$(nix-build -A shakefile --no-out-link)
hash=${hash#/nix/store/} hash=${hash%%-*}
echo "shake_version=$hash" >> "$GITHUB_ENV"
- name: Cache _build ♻️
uses: actions/cache@v4
with:
path: _build
key: prose-4-${{ env.shake_version }}-${{ github.run_id }}
restore-keys: prose-4-${{ env.shake_version }}-
- name: Build the prose ✍️
run: |
echo "$mailmap" > .mailmap
nix-shell --arg interactive false --run "$build_command"
env:
NIX_BUILD_SHELL: bash
build_command: |
set -eu
1lab-shake -j all --skip-agda -b "https://preview.1lab.dev/${{ github.event.number }}/"
eval "$installPhase"
echo "${{ github.event.number }}" > _build/site/.pr-number
# cp -rv _build/site pr-${{ github.event.number }}
- name: Archive 📦
uses: actions/upload-artifact@v4
with:
name: pr-preview
path: _build/site