35 lines
812 B
YAML
35 lines
812 B
YAML
name: Build Documentation
|
|
|
|
on:
|
|
push:
|
|
branches: [main]
|
|
pull_request:
|
|
|
|
jobs:
|
|
build-docs:
|
|
runs-on: ubuntu-latest
|
|
steps:
|
|
- uses: actions/checkout@v4
|
|
|
|
- uses: DeterminateSystems/nix-installer-action@main
|
|
|
|
- uses: DeterminateSystems/magic-nix-cache-action@main
|
|
|
|
- name: Build documentation
|
|
run: |
|
|
nix build .#docs
|
|
nix build .#athenix-options
|
|
|
|
- name: Upload documentation
|
|
uses: actions/upload-artifact@v4
|
|
with:
|
|
name: athenix-docs
|
|
path: result/
|
|
|
|
- name: Deploy to GitHub Pages
|
|
if: github.ref == 'refs/heads/main'
|
|
uses: peaceiris/actions-gh-pages@v4
|
|
with:
|
|
github_token: ${{ secrets.GITHUB_TOKEN }}
|
|
publish_dir: ./result
|