mirror of
https://github.com/srid/ema.git
synced 2024-11-30 03:03:13 +03:00
28 lines
887 B
YAML
28 lines
887 B
YAML
name: "Publish"
|
|
on:
|
|
# Run only when pushing to master branch
|
|
push:
|
|
branches:
|
|
- master
|
|
jobs:
|
|
docs:
|
|
runs-on: ubuntu-latest
|
|
steps:
|
|
- uses: actions/checkout@v2
|
|
- uses: cachix/install-nix-action@v13
|
|
with:
|
|
install_url: https://nixos-nix-install-tests.cachix.org/serve/lb41az54kzk6j12p81br4bczary7m145/install
|
|
install_options: "--tarball-url-prefix https://nixos-nix-install-tests.cachix.org/serve"
|
|
extra_nix_config: |
|
|
experimental-features = nix-command flakes
|
|
- name: Build and generate docs HTML 🔧
|
|
run: |
|
|
mkdir ./docs-output
|
|
nix run . -- gen ./docs-output
|
|
- name: Deploy to gh-pages 🚀
|
|
uses: peaceiris/actions-gh-pages@v3
|
|
with:
|
|
github_token: ${{ secrets.GITHUB_TOKEN }}
|
|
publish_dir: docs-output
|
|
cname: ema.srid.ca
|