-
-
Notifications
You must be signed in to change notification settings - Fork 4
44 lines (35 loc) · 1.12 KB
/
build-and-deploy-site.yaml
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
34
35
36
37
38
39
40
41
42
43
name: Build and Deploy Site
on:
push:
branches:
- main
permissions:
contents: write
jobs:
build-and-deploy-site:
concurrency: ci-${{ github.ref }} # Recommended if you intend to make multiple deployments in quick succession.
runs-on: ubuntu-latest
steps:
- name: Checkout 🛎️
uses: actions/checkout@v3
- name: Install nix
uses: cachix/install-nix-action@v25
with:
nix_path: nixpkgs=channel:nixos-unstable
- uses: cachix/cachix-action@v14
with:
name: holochain-ci
- uses: cachix/cachix-action@v14
with:
name: holochain-open-dev
- uses: cachix/cachix-action@v14
with:
name: darksoil-studio
- name: Install and Build 🔧
run: |
nix develop --no-update-lock-file --command bash -c "pnpm install && pnpm -F docs build"
- name: Deploy 🚀
uses: JamesIves/[email protected]
with:
branch: gh-pages # The branch the action should deploy to.
folder: docs/.vitepress/dist # The folder the action should deploy.