5
5
branches :
6
6
- integrate_docs
7
7
8
+ # Allows you to run this workflow manually from the Actions tab
9
+ workflow_dispatch :
10
+
11
+ # Sets permissions of the GITHUB_TOKEN to allow deployment to GitHub Pages
12
+ permissions :
13
+ contents : read
14
+ pages : write
15
+ id-token : write
16
+
8
17
jobs :
9
18
build :
19
+ environment :
20
+ name : github-pages
21
+ url : ${{ steps.deployment.outputs.page_url }}
10
22
runs-on : ubuntu-latest
11
23
12
24
steps :
@@ -22,22 +34,21 @@ jobs:
22
34
run : |
23
35
sudo apt-get update
24
36
sudo apt-get install -y --no-install-recommends python3-pip python3-dev git git-lfs zip doxygen build-essential unzip wget pandoc ssh fswatch vim tmux zsh
25
- wget https://github.com/google/protobuf/releases/download/v3.6.1/protoc-3.6.1-linux-x86_64.zip
26
- unzip protoc-3.6.1-linux-x86_64.zip -d ./usr/local
27
- rm protoc-3.6.1-linux-x86_64.zip
28
- wget https://github.com/pseudomuto/protoc-gen-doc/releases/download/v1.3.2/protoc-gen-doc-1.3.2.linux-amd64.go1.12.6.tar.gz
29
- tar xzf protoc-gen-doc-1.3.2.linux-amd64.go1.12.6.tar.gz
30
- mv protoc-gen-doc-1.3.2.linux-amd64.go1.12.6/protoc-gen-doc /usr/local/bin/
31
37
pip3 install --upgrade "sphinx>=3.5,<5" "nbclient<0.6,>=0.2" docutils==0.16 ablog myst-nb rst-to-myst nbsphinx==0.8.8 sphinx-book-theme==0.3.2 sphinx-copybutton sphinx-design sphinx-prompt sphinxcontrib-bibtex sphinx-tabs==3.2.0 exhale==0.2.3 breathe==4.14.1 sphinx-sitemap ipython sphinxcontrib-openapi sphinx-autobuild linkify-it-py
32
38
33
39
- name : Build docs
34
40
run : |
35
- sphinx-build -M html monai-cloud-api/ build/html
41
+ sphinx-build -M html docs/ monai-cloud-api/ docs/build
36
42
43
+ - name : Setup Pages
44
+ uses : actions/configure-pages@v3
37
45
38
- - name : Deploy to dist branch
39
- run : |
40
- git checkout -b dist
41
- git add -f build/html
42
- git commit -m "Deploy Sphinx documentation to dist branch"
43
- git push origin dist
46
+ - name : Upload Artifact
47
+ uses : actions/upload-pages-artifact@v2
48
+ with :
49
+ # upload entire directory
50
+ path : ' ./docs/build/html'
51
+
52
+ - name : Deploy to GitHub Pages
53
+ id : deployment
54
+ uses : actions/deploy-pages@v2
0 commit comments