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
Jan Schmitt d222200091
ci: use latest stable channel 22.05 -> 22.11
* use matrix build to run tests against latest stable and unstable
  channel
* add descriptions to github action steps
2023-04-28 13:26:11 +02:00

39 lines
986 B
YAML

name: Update manual
on:
push:
branches:
- master
paths:
- '**.nix'
jobs:
update-manual:
runs-on: macos-12
steps:
- name: Checkout repository
uses: actions/checkout@v3
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@v20
with:
extra_nix_config: |
access-tokens = github.com=${{ secrets.GITHUB_TOKEN }}
- name: Build manual
run: |
nix-build ./release.nix -I nixpkgs=channel:nixpkgs-22.11-darwin -I darwin=. -A manualHTML
- name: Push update to manual
run: |
git checkout gh-pages
rm -rf manual
cp -R result/share/doc/darwin manual
rm result
git config user.name github-actions
git config user.email github-actions@github.com
git add --all
git commit -m "Update manual"
git push