Skip to content

Commit 264fd55

Browse files
committed
reduce build path
1 parent 40d2100 commit 264fd55

File tree

1 file changed

+24
-13
lines changed

1 file changed

+24
-13
lines changed

.github/workflows/build_docs.yaml

Lines changed: 24 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -5,8 +5,20 @@ on:
55
branches:
66
- integrate_docs
77

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+
817
jobs:
918
build:
19+
environment:
20+
name: github-pages
21+
url: ${{ steps.deployment.outputs.page_url }}
1022
runs-on: ubuntu-latest
1123

1224
steps:
@@ -22,22 +34,21 @@ jobs:
2234
run: |
2335
sudo apt-get update
2436
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/
3137
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
3238
3339
- name: Build docs
3440
run: |
35-
sphinx-build -M html monai-cloud-api/ build/html
41+
sphinx-build -M html docs/monai-cloud-api/ docs/build
3642
43+
- name: Setup Pages
44+
uses: actions/configure-pages@v3
3745

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

Comments
 (0)