blob: 6ad26920cb10721fe888dc299a1803819875b8cf (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
|
name: publish_guide
on:
push:
branches: [ master ]
pull_request:
branches: [ master ]
jobs:
build:
name: Build, Test, and Publish Guide
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4.1.0
- uses: cachix/install-nix-action@v26
with:
nix_path: nixpkgs=channel:nixos-unstable
- uses: cachix/cachix-action@v12
with:
name: type-description
# If you chose API tokens for write access OR if you have a private cache
authToken: '${{ secrets.CACHIX_AUTH_TOKEN }}'
- run: nix --extra-experimental-features "nix-command flakes" build .#book
- run: mkdir -p output/book output/description_viewer
- run: cp -LR result/* output/book
- run: nix --extra-experimental-features "nix-command flakes" build .#description_website_gh_pages
- run: cp -LR result/* output/description_viewer
- run: tree output
- uses: JamesIves/github-pages-deploy-action@v4.4.3
if: ${{ github.event_name == 'push' && github.ref_name == 'master' }}
with:
branch: gh-pages
folder: output
|