Skip to content

Commit 94b29ab

Browse files
authored
Update build_and_deploy.yml [build]
1 parent 02cb4fa commit 94b29ab

File tree

1 file changed

+17
-15
lines changed

1 file changed

+17
-15
lines changed

.github/workflows/build_and_deploy.yml

Lines changed: 17 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -13,36 +13,38 @@ jobs:
1313
# cd expyriment
1414
# echo "$PWD"
1515
# git clone https://github.com/expyriment/documentation
16-
- name: Checkout
16+
17+
- name: Checkout Documentation
1718
uses: actions/checkout@v4
1819
with:
19-
repository: expyriment/expyriment
20-
path: expyriment
21-
- name: Checkout
20+
path: documentation
21+
- name: Get latest Expyriment release
22+
id: latest
23+
uses: pozetroninc/github-action-get-latest-release@master
24+
with:
25+
owner: expyriment
26+
repo: expyriment
27+
excludes: draft#, prerelease
28+
- name: Checkout Expyriment
2229
uses: actions/checkout@v4
2330
with:
24-
path: documentation
31+
repository: expyriment/expyriment
32+
path: expyriment
33+
ref: tags/${{ steps.latest.outputs.release }}
2534
- name: Set up Python
2635
uses: actions/setup-python@v5
2736
- name: Install dependencies
2837
run: |
2938
python -m pip install -U pip wheel
3039
- name: Build
3140
run: |
32-
echo "$PWD"
33-
sudo apt-get install -y tree
34-
cd
35-
tree -d
36-
cd expyriment/documentation/sphinx
37-
make html
38-
#python create_rst_api_reference.py
39-
#sphinx-build -b html _build/html
40-
cd ..
41+
cd documentation/sphinx
42+
make html EXPYRIMENT_PATH=../expyriment
4143
- name: Deploy
4244
uses: JamesIves/github-pages-deploy-action@v4
4345
with:
4446
branch: gh-pages-test # change back to gh-pages after testing
45-
folder: sphinx/_build/html/
47+
folder: documentation/sphinx/_build/html/
4648
target-folder: ./
4749
clean-exclude: |
4850
old/

0 commit comments

Comments
 (0)