Commit 8aaad5a 1 parent ca649ea commit 8aaad5a Copy full SHA for 8aaad5a
File tree 2 files changed +14
-1
lines changed
2 files changed +14
-1
lines changed Original file line number Diff line number Diff line change 19
19
- name : Run tests
20
20
run : docker run --user=allagash -v $PWD/tests:/home/allagash/tests -v $PWD/src-doc:/home/allagash/src-doc apulverizer/allagash:build /bin/bash -c "py.test --nbval"
21
21
- name : Build documentation
22
- run : docker run --user=allagash -v $PWD/src-doc:/home/allagash/src-doc apulverizer/allagash:build /bin/bash -c "sphinx-build -b html ./src-doc ./doc -a"
22
+ run : docker run --user=root -v $PWD/doc:/home/ allagash/doc -v $PWD/src-doc:/home/allagash/src-doc apulverizer/allagash:build /bin/bash -c "sphinx-build -b html ./src-doc ./doc -a"
Original file line number Diff line number Diff line change 4
4
release :
5
5
types : [published]
6
6
7
+ permissions :
8
+ contents : write
9
+
7
10
jobs :
8
11
deploy :
9
12
runs-on : ubuntu-latest
23
26
run : docker run --user=allagash -w /home/allagash/src apulverizer/allagash:build
24
27
/bin/bash -c "twine upload -u __token__ -p $PYPI_API_TOKEN dist/*"
25
28
29
+ - name : Build docs
30
+ # Run as root so results can be saved to GHA runner host
31
+ run : docker run --user=root -v $PWD/doc:/home/allagash/doc -v $PWD/src-doc:/home/allagash/src-doc apulverizer/allagash:build /bin/bash -c "sphinx-build -b html ./src-doc ./doc -a"
32
+
33
+ - name : Deploy docs
34
+ uses : JamesIves/github-pages-deploy-action@v4
35
+ with :
36
+ folder : doc
37
+ branch : gh-pages
38
+
26
39
- name : Build public docker image
27
40
run : VERSION=$(docker run --user=allagash apulverizer/allagash:build /bin/bash -c "python -c 'import allagash;print(allagash.__version__)'")
28
41
&& docker build --build-arg VERSION=$VERSION . -t apulverizer/allagash:latest -t apulverizer/allagash:$VERSION
You can’t perform that action at this time.
0 commit comments