Skip to content

Commit c192c44

Browse files
committed
Update Python version in build-deploy workflow
1 parent 09ee308 commit c192c44

File tree

1 file changed

+42
-43
lines changed

1 file changed

+42
-43
lines changed

.github/workflows/build-deploy.yml

Lines changed: 42 additions & 43 deletions
Original file line numberDiff line numberDiff line change
@@ -10,46 +10,45 @@ jobs:
1010
runs-on: ubuntu-latest
1111

1212
steps:
13-
- name: Checkout code
14-
uses: actions/checkout@v2
15-
16-
- name: Set up Python
17-
uses: actions/setup-python@v3
18-
with:
19-
python-version: 3.9
20-
21-
- name: Install dependencies
22-
run: |
23-
pip install -r docs/requirements.txt
24-
pip install .
25-
# pip install -r requirements.txt
26-
27-
- name: Generate Python API documentation
28-
run: |
29-
sphinx-apidoc -o docs/source .
30-
31-
- name: Build HTML
32-
run: |
33-
cd docs
34-
make html
35-
36-
- name: Copy index.html to gh-pages
37-
run: |
38-
cp docs/index.html index.html
39-
40-
- name: Cleanup .pyc files
41-
run: |
42-
find . -name "*.pyc" -exec rm -f {} \;
43-
44-
- name: Deploy to gh-pages
45-
run: |
46-
git config --global user.email "atwi.r@husky.neu.edu"
47-
git config --global user.name "rashatwi"
48-
git checkout --orphan gh-pages
49-
git reset --hard
50-
mv docs/build/* .
51-
touch .nojekyll
52-
git add .
53-
git commit -m "Deploy website"
54-
git branch -M gh-pages
55-
git push -f origin gh-pages
13+
- name: Checkout code
14+
uses: actions/checkout@v2
15+
16+
- name: Set up Python
17+
uses: actions/setup-python@v3
18+
with:
19+
python-version: 3.10
20+
21+
- name: Install dependencies
22+
run: |
23+
pip install -r docs/requirements.txt
24+
pip install .
25+
# pip install -r requirements.txt
26+
- name: Generate Python API documentation
27+
run: |
28+
sphinx-apidoc -o docs/source .
29+
30+
- name: Build HTML
31+
run: |
32+
cd docs
33+
make html
34+
35+
- name: Copy index.html to gh-pages
36+
run: |
37+
cp docs/index.html index.html
38+
39+
- name: Cleanup .pyc files
40+
run: |
41+
find . -name "*.pyc" -exec rm -f {} \;
42+
43+
- name: Deploy to gh-pages
44+
run: |
45+
git config --global user.email "atwi.r@husky.neu.edu"
46+
git config --global user.name "rashatwi"
47+
git checkout --orphan gh-pages
48+
git reset --hard
49+
mv docs/build/* .
50+
touch .nojekyll
51+
git add .
52+
git commit -m "Deploy website"
53+
git branch -M gh-pages
54+
git push -f origin gh-pages

0 commit comments

Comments
 (0)