mirror of
https://github.com/vale981/hopsflow
synced 2025-03-06 01:01:38 -05:00
39 lines
869 B
YAML
39 lines
869 B
YAML
name: CI
|
|
|
|
on:
|
|
push:
|
|
branches:
|
|
- main
|
|
|
|
jobs:
|
|
build-docs:
|
|
runs-on: ubuntu-latest
|
|
|
|
steps:
|
|
- uses: actions/checkout@v2
|
|
|
|
- uses: actions/cache@v2
|
|
with:
|
|
path: ~/.nix
|
|
key: always
|
|
- uses: cachix/install-nix-action@v15
|
|
with:
|
|
extra_nix_config: |
|
|
access-tokens = github.com=${{ secrets.GITHUB_TOKEN }}
|
|
- run: nix develop -c bash -c "cd docs && make html && cd build/html && touch .nojekyll"
|
|
|
|
- run: apt update && apt install -y git
|
|
|
|
- uses: actions/upload-artifact@v2
|
|
with:
|
|
name: DocumentationHTML
|
|
path: docs/build/html/
|
|
|
|
- name: Publish to GitHub Pages
|
|
if: success()
|
|
uses: crazy-max/ghaction-github-pages@v2
|
|
with:
|
|
target_branch: gh-pages
|
|
build_dir: docs/build/html
|
|
env:
|
|
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|