2022-03-21 20:39:41 +00:00
|
|
|
name: Update manual
|
|
|
|
on:
|
|
|
|
push:
|
|
|
|
branches:
|
|
|
|
- master
|
|
|
|
|
|
|
|
jobs:
|
|
|
|
update-manual:
|
2024-11-04 16:21:37 +00:00
|
|
|
runs-on: macos-13
|
2022-03-21 20:39:41 +00:00
|
|
|
steps:
|
|
|
|
- name: Checkout repository
|
2024-11-04 03:37:59 +00:00
|
|
|
uses: actions/checkout@v4
|
2022-03-21 20:39:41 +00:00
|
|
|
with:
|
|
|
|
# So that we fetch all branches, since we need to checkout the `gh-pages` branch later.
|
|
|
|
fetch-depth: 0
|
|
|
|
|
|
|
|
- name: Install Nix
|
2024-10-22 03:48:39 +00:00
|
|
|
uses: cachix/install-nix-action@v30
|
2022-03-21 20:39:41 +00:00
|
|
|
|
|
|
|
- name: Build manual
|
|
|
|
run: |
|
2024-11-09 09:37:07 +00:00
|
|
|
nix build .#manualHTML
|
2022-03-21 20:39:41 +00:00
|
|
|
|
|
|
|
- name: Push update to manual
|
|
|
|
run: |
|
|
|
|
git checkout gh-pages
|
|
|
|
rm -rf manual
|
|
|
|
cp -R result/share/doc/darwin manual
|
|
|
|
rm result
|
2023-06-25 11:07:38 +00:00
|
|
|
git checkout master -- README.md
|
2022-03-21 20:39:41 +00:00
|
|
|
git config user.name github-actions
|
|
|
|
git config user.email github-actions@github.com
|
|
|
|
git add --all
|
|
|
|
git commit -m "Update manual"
|
|
|
|
git push
|