1
0
Fork 0
mirror of https://github.com/LnL7/nix-darwin.git synced 2024-12-15 17:51:01 +00:00
nix-darwin/.github/workflows/update-manual.yml

36 lines
829 B
YAML
Raw Normal View History

2022-03-21 20:39:41 +00:00
name: Update manual
on:
push:
branches:
- master
jobs:
update-manual:
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
uses: cachix/install-nix-action@v30
2022-03-21 20:39:41 +00:00
- name: Build manual
run: |
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