Skip to content

Deploy docs

Deploy docs #3

Workflow file for this run

name: Deploy docs
env:
ALLOWED_URIS: "https://github.com https://api.github.com"
TRUSTED_PUBLIC_KEYS: "cache.nixos.org-1:6NCHdD59X431o0gWypbMrAURkbJ16ZPMQFGspcDShjY= hydra.iohk.io:f/Ea+s+dFdN+3Y/G+FDgSq+a5NEWhJGzdjvKNGv0/EQ= marlowe-temp.cachix.org-1:1gPjVFpu4QjaAT3tRurCioX+BC23V7mjvFwpP5bV0Ec= loony-tools:pr9m4BkM/5/eSTZlkQyRt57Jz7OMBxNSUiMC4FkcNfk="
SUBSTITUTERS: "https://cache.nixos.org/ https://cache.iog.io https://marlowe-temp.cachix.org https://cache.zw3rk.com/"
on: workflow_dispatch
permissions:
contents: read
pages: write
id-token: write
concurrency:
group: "pages"
cancel-in-progress: false
jobs:
deploy-docs:
environment:
name: github-pages
url: ${{ steps.deployment.outputs.page_url }}
runs-on: ubuntu-latest
steps:
- name: 📥 Checkout repository
uses: actions/[email protected]
- name: 🧰 Setup Pages
uses: actions/configure-pages@v3
- name: 🧰 Setup nix
uses: cachix/install-nix-action@v22
with:
nix_path: nixpkgs=channel:nixos-unstable
install_url: https://releases.nixos.org/nix/nix-2.10.3/install
extra_nix_config: |
allowed-uris = ${{ env.ALLOWED_URIS }}
trusted-public-keys = ${{ env.TRUSTED_PUBLIC_KEYS }}
substituters = ${{ env.SUBSTITUTERS }}
experimental-features = nix-command flakes
github_access_token: ${{ secrets.GITHUB_TOKEN }}
- name: 🔨 Build Docs
run: |
nix develop --show-trace --command bash -c "npm i && npm run build && npm --prefix ./doc/theme/ run build && npm run docs"
- name: 📘 Upload artifact
uses: actions/upload-pages-artifact@v2
with:
path: "./docs"
- name: 📘 Deploy to GitHub Pages
id: deployment
uses: actions/deploy-pages@v2