mirror of
https://github.com/nix-packages/nixapks.git
synced 2025-11-08 19:46:11 +01:00
fix docs workflow
This commit is contained in:
parent
5d963f0f6c
commit
a7dea7220a
1 changed files with 12 additions and 6 deletions
18
.github/workflows/docs.yml
vendored
18
.github/workflows/docs.yml
vendored
|
|
@ -17,17 +17,23 @@ jobs:
|
||||||
steps:
|
steps:
|
||||||
- name: Checkout
|
- name: Checkout
|
||||||
uses: actions/checkout@v4
|
uses: actions/checkout@v4
|
||||||
|
|
||||||
- name: Set up Nix
|
- name: Set up Nix
|
||||||
uses: cachix/install-nix-action@v31
|
uses: cachix/install-nix-action@v31
|
||||||
|
|
||||||
- name: Build documentation with Nix
|
- name: Build documentation with Nix
|
||||||
# Use bash because some Nix examples assume bash; the runner provides it.
|
|
||||||
run: |
|
run: |
|
||||||
# Build the documentation package from the flake. Adjust system if needed.
|
# Build the documentation package from the flake. Adjust system if needed.
|
||||||
nix build .#packages.x86_64-linux.documentation --no-link
|
nix build .#documentation
|
||||||
|
|
||||||
- name: Upload built docs
|
- name: Setup Pages
|
||||||
uses: actions/upload-artifact@v4
|
uses: actions/configure-pages@v5
|
||||||
|
|
||||||
|
- name: Upload artifact
|
||||||
|
uses: actions/upload-pages-artifact@v4
|
||||||
with:
|
with:
|
||||||
name: site
|
path: ./result
|
||||||
path: result
|
|
||||||
|
- name: Deploy to GitHub Pages
|
||||||
|
id: deployment
|
||||||
|
uses: actions/deploy-pages@v4
|
||||||
Loading…
Add table
Add a link
Reference in a new issue