1
0
Fork 0
mirror of https://github.com/LnL7/nix-darwin.git synced 2024-12-14 11:57:34 +00:00
nix-darwin/.github/workflows/update-manual.yml
Michael Hoang 293589065d ci: fix manual not being regenerated when non-Nix files are updated
This also fixes the README not being updated on the website as well
2024-11-09 21:28:09 +11:00

35 lines
829 B
YAML

name: Update manual
on:
push:
branches:
- master
jobs:
update-manual:
runs-on: macos-13
steps:
- name: Checkout repository
uses: actions/checkout@v4
with:
# So that we fetch all branches, since we need to checkout the `gh-pages` branch later.
fetch-depth: 0
- name: Install Nix
uses: cachix/install-nix-action@v30
- name: Build manual
run: |
nix build .#manualHTML
- name: Push update to manual
run: |
git checkout gh-pages
rm -rf manual
cp -R result/share/doc/darwin manual
rm result
git checkout master -- README.md
git config user.name github-actions
git config user.email github-actions@github.com
git add --all
git commit -m "Update manual"
git push