-
Notifications
You must be signed in to change notification settings - Fork 4
43 lines (38 loc) · 1.06 KB
/
publish_wps.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
40
41
42
43
name: Build and Deploy Docs
on:
push:
branches:
- main
pull_request:
types: [opened,reopened,review_requested]
workflow_dispatch:
jobs:
build-and-deploy:
runs-on: ubuntu-latest
steps:
- name: set git user
run: |
git config --global user.email "[email protected]"
git config --global user.name "SSD Developers"
- name: Check out source
uses: actions/checkout@v4
- uses: actions/setup-python@v5
with:
python-version: '3.x'
- name: Install Dependencies
run: |
pip install -r .github/workflows/requirements.txt
- name: build docs
run: |
make clean html
- name: commit docs to gh-pages branch
if: ${{ github.event_name == 'push' && github.ref_name == 'main' }}
run: |
git worktree add ../publish_wps
cd ../publish_wps
git fetch origin gh-pages
git checkout gh-pages
cp -r ../simulation-systems/build/html/. .
git add .
git commit -am "Docs build"
git push -u origin gh-pages