File tree 2 files changed +77
-56
lines changed
2 files changed +77
-56
lines changed Original file line number Diff line number Diff line change
1
+ # Simple workflow for deploying static content to GitHub Pages
2
+ name : Build Docs
3
+
4
+ on :
5
+ workflow_dispatch :
6
+ push :
7
+ branches :
8
+ - main
9
+ paths :
10
+ - " **"
11
+
12
+ # Sets permissions of the GITHUB_TOKEN to allow deployment to GitHub Pages
13
+ permissions :
14
+ contents : read
15
+ pages : write
16
+ id-token : write
17
+
18
+ # Allow only one concurrent deployment, skipping runs queued between the run in-progress and latest queued.
19
+ # However, do NOT cancel in-progress runs as we want to allow these production deployments to complete.
20
+ concurrency :
21
+ group : " pages"
22
+ cancel-in-progress : false
23
+
24
+ jobs :
25
+ # Single deploy job since we're just deploying
26
+ deploy :
27
+ environment :
28
+ name : github-pages
29
+ url : ${{ steps.deployment.outputs.page_url }}
30
+
31
+ runs-on : ubuntu-latest
32
+
33
+ steps :
34
+ - name : Checkout
35
+ uses : actions/checkout@v4
36
+
37
+ - name : Setup Pages
38
+ uses : actions/configure-pages@v5
39
+
40
+ - name : Setup Python
41
+ uses : actions/setup-python@v5
42
+ with :
43
+ python-version : ' 3.12'
44
+
45
+ - name : Build Docs
46
+ run : |
47
+ cd docs
48
+ sudo apt-get install -y python3-sphinx
49
+ pip3 install -r requirements.txt
50
+ sphinx-build -M html ./ ./build
51
+
52
+ - name : Set up JDK 8
53
+ uses : actions/setup-java@v4
54
+ with :
55
+ distribution : ' corretto'
56
+ java-version : ' 8'
57
+
58
+ - name : Setup Gradle
59
+ uses : gradle/gradle-build-action@v3
60
+ with :
61
+ gradle-version : 8.5
62
+
63
+ - name : Build Javadoc
64
+ run : gradle javadoc
65
+
66
+ - name : Copy Javadoc
67
+ run : cp -rf build/docs/javadoc docs/build/html/reference
68
+
69
+ - name : Upload artifact
70
+ uses : actions/upload-pages-artifact@v3
71
+ with :
72
+ # Upload entire repository
73
+ path : ' docs/build/html'
74
+
75
+ - name : Deploy to GitHub Pages
76
+ id : deployment
77
+ uses : actions/deploy-pages@v4
Load Diff This file was deleted.
You can’t perform that action at this time.
0 commit comments