File tree Expand file tree Collapse file tree 1 file changed +51
-0
lines changed Expand file tree Collapse file tree 1 file changed +51
-0
lines changed Original file line number Diff line number Diff line change
1
+ # Build and deploy Sphinx docs to GitHub Pages
2
+ name : Pages
3
+ on :
4
+ push :
5
+ branches : ['main']
6
+ workflow_dispatch :
7
+
8
+ # Sets permissions of the GITHUB_TOKEN
9
+ permissions :
10
+ contents : read
11
+ pages : write
12
+ id-token : write
13
+
14
+ # Allow only one concurrent deployment, skipping runs queued between the run in-progress and latest queued.
15
+ # However, do NOT cancel in-progress runs as we want to allow these production deployments to complete.
16
+ concurrency :
17
+ group : " pages"
18
+ cancel-in-progress : false
19
+
20
+ jobs :
21
+ # Build job
22
+ build :
23
+ runs-on : ubuntu-latest
24
+ container :
25
+ image : ghcr.io/genentech/scimilarity:latest
26
+ steps :
27
+ - uses : actions/checkout@v3
28
+ - name : Install dependencies
29
+ run : |
30
+ pip install -r docs/requirements.txt
31
+ - name : Setup Pages
32
+ id : pages
33
+ uses : actions/configure-pages@v3
34
+ - name : Sphinx build
35
+ run : |
36
+ sphinx-build -b html docs _build
37
+ - name : Upload artifact
38
+ uses : actions/upload-pages-artifact@v2
39
+ with :
40
+ path : ./_build
41
+ # Deployment job
42
+ deploy :
43
+ environment :
44
+ name : github-pages
45
+ url : ${{ steps.deployment.outputs.page_url }}
46
+ runs-on : ubuntu-latest
47
+ needs : build
48
+ steps :
49
+ - name : Deploy to GitHub Pages
50
+ id : deployment
51
+ uses : actions/deploy-pages@v2
You can’t perform that action at this time.
0 commit comments