docs/.forgejo/workflows/deploy.yaml

26 lines
677 B
YAML
Raw Normal View History

2024-06-30 05:53:29 +00:00
on:
push:
branches:
- main
jobs:
build:
2024-06-30 05:55:29 +00:00
runs-on: docker
2024-06-30 05:53:29 +00:00
steps:
- name: Checkout Repo
uses: https://code.forgejo.org/actions/checkout@v4
2024-06-30 05:55:29 +00:00
- name: Setup Nix
uses: https://github.com/cachix/install-nix-action@v27
2024-06-30 06:20:34 +00:00
with:
nix_path: nixpkgs=channel:nixpkgs-unstable
2024-06-30 05:53:29 +00:00
2024-06-30 05:55:29 +00:00
- name: Build Docs
2024-06-30 05:53:29 +00:00
run: |
nix build .#md-manual --out-link docs
2024-06-30 06:20:34 +00:00
nix-shell -p 'python312.withPackages(ps: with ps; [ mkdocs-material mkdocs pillow cairosvg ])' --run "mkdocs build -d ./public"
2024-06-30 05:53:29 +00:00
- name: Deploy
uses: https://git.pyrox.dev/actions/pages-action@v2
with:
folder: ./public