mirror of
https://github.com/vale981/hopsflow
synced 2025-03-04 16:31:38 -05:00
31 lines
756 B
YAML
31 lines
756 B
YAML
name: CI
|
|
|
|
on:
|
|
push:
|
|
branches:
|
|
- main
|
|
|
|
jobs:
|
|
build-and-docs:
|
|
runs-on: ubuntu-latest
|
|
environment: actions
|
|
steps:
|
|
- uses: actions/checkout@v3
|
|
- uses: cachix/install-nix-action@v22
|
|
with:
|
|
github_access_token: ${{ secrets.GITHUB_TOKEN }}
|
|
- run: nix build -L
|
|
- run: nix develop -c bash -c "cd docs && make html && cd build/html && touch .nojekyll"
|
|
- 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 }}
|