-
Notifications
You must be signed in to change notification settings - Fork 466
38 lines (32 loc) · 892 Bytes
/
deploy_docs.yml
File metadata and controls
38 lines (32 loc) · 892 Bytes
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
name: build and deploy docs
on:
workflow_call:
workflow_dispatch:
push:
branches: ['main']
paths: ['docs/**']
jobs:
build:
uses: ./.github/workflows/build_docs.yml
secrets: inherit
deploy:
needs: build
runs-on: ubuntu-latest
steps:
- name: Download docs artifact
uses: actions/download-artifact@v8
with:
name: docs-html
path: docs-html/
- name: Deploy to ghpages branch
uses: peaceiris/actions-gh-pages@v3
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
publish_dir: docs-html
- name: Deploy to fair-chem.github.io
uses: peaceiris/actions-gh-pages@v4
with:
deploy_key: ${{ secrets.ACTIONS_DEPLOY_KEY }}
external_repository: FAIR-Chem/fair-chem.github.io
publish_branch: gh-pages
publish_dir: docs-html