hopsflow/.github/workflows/default.yml

32 lines
756 B
YAML
Raw Normal View History

2021-12-07 13:37:35 +01:00
name: CI
on:
push:
branches:
2021-12-07 13:38:53 +01:00
- main
2021-12-07 13:37:35 +01:00
jobs:
2021-12-10 11:11:39 +01:00
build-and-docs:
2021-12-07 13:37:35 +01:00
runs-on: ubuntu-latest
2021-12-10 11:06:57 +01:00
environment: actions
2021-12-07 13:37:35 +01:00
steps:
2024-01-28 13:36:06 -05:00
- uses: actions/checkout@v3
- uses: cachix/install-nix-action@v22
2021-12-10 11:07:52 +01:00
with:
2024-01-28 13:36:06 -05:00
github_access_token: ${{ secrets.GITHUB_TOKEN }}
2023-11-30 13:41:00 -05:00
- run: nix build -L
- run: nix develop -c bash -c "cd docs && make html && cd build/html && touch .nojekyll"
2021-12-07 13:54:14 +01:00
- uses: actions/upload-artifact@v2
2021-12-07 13:37:35 +01:00
with:
name: DocumentationHTML
2021-12-07 13:47:12 +01:00
path: docs/build/html/
2021-12-07 13:37:35 +01:00
2021-12-07 13:54:14 +01:00
- 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 }}