mirror of
https://github.com/foo-dogsquared/nix-module-wrapper-manager-fds.git
synced 2025-01-30 22:57:58 +00:00
ci: add build site job
This commit is contained in:
parent
c54ffe07b5
commit
0f3a17a802
32
.github/workflows/site.yml
vendored
Normal file
32
.github/workflows/site.yml
vendored
Normal file
@ -0,0 +1,32 @@
|
||||
name: Deploy documentation site
|
||||
on:
|
||||
push:
|
||||
branches: [master]
|
||||
|
||||
jobs:
|
||||
build-site:
|
||||
name: Build website
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
- uses: actions/checkout@v4
|
||||
- uses: DeterminateSystems/nix-installer-action@v15
|
||||
- run: make build
|
||||
- name: Upload artifact
|
||||
id: deployment
|
||||
uses: actions/upload-pages-artifact@v3
|
||||
with:
|
||||
path: result/
|
||||
deploy-site:
|
||||
name: Deploy website
|
||||
needs: build-site
|
||||
permissions:
|
||||
pages: write
|
||||
id-token: write
|
||||
environment:
|
||||
name: github-pages
|
||||
url: ${{ steps.deployment.outputs.page_url }}
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
- name: Deploy to GitHub Pages
|
||||
id: deployment
|
||||
uses: actions/deploy-pages@v4
|
4
Makefile
4
Makefile
@ -6,6 +6,10 @@ docs-serve:
|
||||
docs-build:
|
||||
hugo -s docs/website
|
||||
|
||||
.PHONY: build
|
||||
build:
|
||||
{ command -v nix >/dev/null && nix build -f docs/ website; } || { nix-build docs/ -A website; }
|
||||
|
||||
.PHONY: check
|
||||
check:
|
||||
{ command -v nix > /dev/null && nix flake check; } || { nix-build tests -A configs -A lib; }
|
||||
|
Loading…
Reference in New Issue
Block a user