mirror of
https://github.com/TECHNOFAB11/kubenix.git
synced 2025-12-11 23:50:06 +01:00
45 lines
No EOL
856 B
YAML
45 lines
No EOL
856 B
YAML
name: pages
|
|
|
|
on:
|
|
push:
|
|
branches:
|
|
- main
|
|
paths:
|
|
- 'docs/**'
|
|
- 'modules/**'
|
|
- 'README.md'
|
|
|
|
jobs:
|
|
deploy:
|
|
runs-on: ubuntu-latest
|
|
environment:
|
|
name: github-pages
|
|
url: ${{ steps.deployment.outputs.page_url }}
|
|
steps:
|
|
- uses: actions/checkout@v3
|
|
with:
|
|
submodules: true
|
|
fetch-depth: 0
|
|
|
|
- name: install nix
|
|
uses: cachix/install-nix-action@v20
|
|
|
|
- name: configure cache
|
|
uses: DeterminateSystems/magic-nix-cache-action@v1
|
|
|
|
- name: build
|
|
run: nix run '.#docs' -- --minify
|
|
|
|
- name: upload
|
|
uses: actions/upload-pages-artifact@v1
|
|
with:
|
|
path: './docs/public'
|
|
|
|
- name: deploy
|
|
id: deployment
|
|
uses: actions/deploy-pages@v1
|
|
|
|
permissions:
|
|
contents: read
|
|
pages: write
|
|
id-token: write |