Skip to content

Merge pull request #33 from Endle/patch-1 #21

Merge pull request #33 from Endle/patch-1

Merge pull request #33 from Endle/patch-1 #21

Workflow file for this run

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