-
Notifications
You must be signed in to change notification settings - Fork 483
39 lines (33 loc) · 1.01 KB
/
docusaurus-site.yml
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
# This workflow builds and deploys the Docusaurus site.
#
# This workflow builds the site on pull requests, and it also automatically deploys
# the site on push to master or on workflow dispatch to:
# https://plutus.cardano.intersectmbo.org/docs
name: "🦕 Docusaurus Site"
on:
push:
branches:
- master
workflow_dispatch:
pull_request:
jobs:
run:
name: Run
runs-on: [self-hosted, plutus-ci]
permissions:
contents: write
environment:
name: github-pages
steps:
- name: Checkout
uses: actions/checkout@main
- name: Build Site
working-directory: doc/docusaurus
run: nix develop --no-warn-dirty --accept-flake-config --command bash -c 'yarn && yarn build'
- name: Deploy Site
if: github.event_name == 'push' || github.event_name == 'workflow_dispatch'
uses: JamesIves/github-pages-deploy-action@v4.7.2
with:
folder: doc/docusaurus/build
target-folder: docs
single-commit: true