mirror of
https://github.com/NixOS/nix
synced 2025-07-08 15:13:55 +02:00
Merge pull request #44 from DeterminateSystems/build-manual
Build the Nix manual in CI
This commit is contained in:
commit
5a647b670c
1 changed files with 33 additions and 0 deletions
33
.github/workflows/ci.yml
vendored
33
.github/workflows/ci.yml
vendored
|
@ -134,3 +134,36 @@ jobs:
|
|||
flakehub: true
|
||||
- uses: DeterminateSystems/flakehub-cache-action@main
|
||||
- run: nix build -L --out-link ./new-nix && PATH=$(pwd)/new-nix/bin:$PATH MAX_FLAKES=50 flake-regressions/eval-all.sh
|
||||
|
||||
manual:
|
||||
if: github.event_name != 'merge_group'
|
||||
needs: build_x86_64-linux
|
||||
runs-on: blacksmith
|
||||
permissions:
|
||||
id-token: "write"
|
||||
contents: "read"
|
||||
pull-requests: "write"
|
||||
statuses: "write"
|
||||
deployments: "write"
|
||||
steps:
|
||||
- name: Checkout nix
|
||||
uses: actions/checkout@v4
|
||||
- uses: DeterminateSystems/nix-installer-action@main
|
||||
with:
|
||||
flakehub: true
|
||||
- uses: DeterminateSystems/flakehub-cache-action@main
|
||||
- name: Build manual
|
||||
run: nix build .#hydraJobs.manual
|
||||
- uses: nwtgck/actions-netlify@v3.0
|
||||
with:
|
||||
publish-dir: './result/share/doc/nix/manual'
|
||||
production-branch: detsys-main
|
||||
github-token: ${{ secrets.GITHUB_TOKEN }}
|
||||
deploy-message: "Deploy from GitHub Actions"
|
||||
enable-pull-request-comment: true
|
||||
enable-commit-comment: true
|
||||
enable-commit-status: true
|
||||
overwrites-pull-request-comment: true
|
||||
env:
|
||||
NETLIFY_AUTH_TOKEN: ${{ secrets.NETLIFY_AUTH_TOKEN }}
|
||||
NETLIFY_SITE_ID: ${{ secrets.NETLIFY_SITE_ID }}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue