Skip to content

Commit 67d960d

Browse files
authored
make deploy_dev.yaml to load docs for dev branch (#104)
Signed-off-by: Michael Anderson <anderson@mbari.org>
1 parent ac97063 commit 67d960d

File tree

1 file changed

+59
-0
lines changed

1 file changed

+59
-0
lines changed

.github/workflows/deploy_dev.yaml

Lines changed: 59 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,59 @@
1+
name: Build and Deploy Documentation
2+
3+
on:
4+
push:
5+
branches:
6+
- dev
7+
schedule:
8+
- cron: '0 0 * * *' # run nightly at midnight
9+
10+
# Allows manual workflow from Actions tab
11+
workflow_dispatch:
12+
13+
# Sets permissions of the GITHUB_TOKEN to allow deployment to GitHub Pages
14+
permissions:
15+
contents: write
16+
pages: write
17+
id-token: write
18+
pull-requests: write
19+
20+
# Allow one concurrent deployment
21+
concurrency:
22+
group: "pages"
23+
cancel-in-progress: true
24+
25+
jobs:
26+
# Build job
27+
build:
28+
runs-on: ubuntu-latest
29+
steps:
30+
- name: Checkout
31+
uses: actions/checkout@v3
32+
33+
- name: Setup Python
34+
uses: actions/setup-python@v4
35+
with:
36+
python-version: 3.x
37+
cache: 'pip'
38+
39+
- name: Install python dependencies
40+
run: pip install -r docs/requirements.txt
41+
42+
- name: Setup Pages
43+
id: pages
44+
uses: actions/configure-pages@v2
45+
46+
- name: Build with mkdocs
47+
run: |
48+
cd docs
49+
mkdocs build -c
50+
51+
- name: Deploy
52+
uses: JamesIves/github-pages-deploy-action@v4
53+
with:
54+
branch: gh-pages
55+
folder: ./docs/site
56+
clean: true
57+
# clean-exclude: pr-preview/
58+
target-folder: dev
59+
force: false

0 commit comments

Comments
 (0)