-
Notifications
You must be signed in to change notification settings - Fork 0
43 lines (43 loc) · 1.35 KB
/
build_and_deploy.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
on: [push]
jobs:
build-and-deploy:
runs-on: ubuntu-latest
if: ${{ contains(github.event.head_commit.message, '[build') }}
steps:
- name: Checkout
uses: actions/checkout@v4
with:
repository: expyriment/expyriment
- name: Checkout
uses: actions/checkout@v4
with:
path: expyriment
- name: Set up Python
uses: actions/setup-python@v5
- name: Install dependencies
run: |
python -m pip install -U pip wheel
python -m pip install sphinx numpydoc sphinx-rtd-theme
- name: Install expyriment
run: | # change back to normal install after testing
echo "nothing"
# python -m pip install expyriment
#python -m pip install -i https://test.pypi.org/simple/ --extra-index-url https://pypi.org/simple --pre expyriment
- name: Build
run: |
echo "$PWD"
cd sphinx
make html
#python create_rst_api_reference.py
#sphinx-build -b html _build/html
cd ..
- name: Deploy
uses: JamesIves/github-pages-deploy-action@v4
with:
branch: gh-pages-test # change back to gh-pages after testing
folder: sphinx/_build/html/
target-folder: ./
clean-exclude: |
old/
0.*/