File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 1+ name : javadocs-pages
2+
3+ on :
4+ # Runs on pushes targeting the default branch
5+ push :
6+ branches : ["master"]
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+
17+ # Allow one concurrent deployment
18+ concurrency :
19+ group : " pages"
20+ cancel-in-progress : true
21+
22+ jobs :
23+ # Single deploy job since we're just deploying
24+ deploy :
25+ environment :
26+ name : github-pages
27+ url : ${{ steps.deployment.outputs.page_url }}
28+
29+ runs-on : ubuntu-latest
30+
31+ steps :
32+ - name : Checkout source repository
33+ uses : actions/checkout@v4
34+ with :
35+ fetch-depth : 0
36+
37+ - name : Set up JDK 17
38+ uses : actions/setup-java@v4
39+ with :
40+ distribution : " zulu"
41+ java-version : 17
42+
43+ - name : Build Javadocs
44+ run : ./bld download clean javadoc
45+
46+ - name : Setup Pages
47+ uses : actions/configure-pages@v5
48+
49+ - name : Upload artifact
50+ uses : actions/upload-pages-artifact@v3
51+ with :
52+ # Upload generated Javadocs repository
53+ path : " build/javadoc/"
54+
55+ - name : Deploy to GitHub Pages
56+ id : deployment
57+ uses : actions/deploy-pages@v4
You can’t perform that action at this time.
0 commit comments