-
Notifications
You must be signed in to change notification settings - Fork 17
32 lines (32 loc) · 946 Bytes
/
pages.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
name: Pages
on:
push:
branches:
- master
paths:
- cached-nix-shell.1.md
- Cargo.toml # Trigger the action on releases
- .github/workflows/pages.yml
jobs:
pages:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- run: git fetch --prune --unshallow --tags
- uses: cachix/install-nix-action@v27
with:
nix_path: nixpkgs=channel:nixos-unstable
- run: nix-env -f '<nixpkgs>' -iA ronn
- name: Build man page
run: |
ronn --organization="$(git describe --tags)" --style toc -5 cached-nix-shell.1.md
mkdir pages
mv ./cached-nix-shell.1.html pages
- name: Deploy
uses: peaceiris/actions-gh-pages@v4
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
publish_dir: ./pages
user_name: github-actions[bot]
user_email: github-actions[bot]@users.noreply.github.com
commit_message: Regenerate man page