File tree Expand file tree Collapse file tree 1 file changed +56
-0
lines changed
Expand file tree Collapse file tree 1 file changed +56
-0
lines changed Original file line number Diff line number Diff line change 1+ name : Release docs
2+
3+ on :
4+ push :
5+ tags :
6+ - v**
7+ workflow_dispatch :
8+
9+ # Sets permissions of the GITHUB_TOKEN to allow deployment to GitHub Pages
10+ permissions :
11+ contents : read
12+ pages : write
13+ id-token : write
14+
15+ # Allow only one concurrent deployment, skipping runs queued between the run in-progress and latest queued.
16+ # However, do NOT cancel in-progress runs as we want to allow these production deployments to complete.
17+ concurrency :
18+ group : " pages"
19+ cancel-in-progress : false
20+
21+ jobs :
22+ build-javadocs :
23+ name : Build Javadocs/KtDocs
24+ runs-on : ubuntu-latest
25+ timeout-minutes : 10
26+ steps :
27+ - uses : actions/checkout@v4
28+ - uses : actions/setup-java@v4
29+ with :
30+ distribution : ' temurin'
31+ java-version : ' 21'
32+ - name : Setup Gradle
33+ uses : gradle/actions/setup-gradle@v4
34+
35+ - name : Build Javadocs
36+ run : gradle :sdk-aggregated-javadocs:javadoc
37+ - name : Build Kotlin docs
38+ run : gradle :dokkaHtmlMultiModule
39+
40+ - name : Move stuff around
41+ run : mkdir _site && mv ./sdk-aggregated-javadocs/build/docs/javadoc _site/javadocs && mv ./build/dokka/htmlMultiModule _site/ktdocs
42+
43+ - name : Upload artifact
44+ uses : actions/upload-pages-artifact@v3
45+
46+ # Deployment job
47+ deploy :
48+ environment :
49+ name : github-pages
50+ url : ${{ steps.deployment.outputs.page_url }}
51+ runs-on : ubuntu-latest
52+ needs : build-javadocs
53+ steps :
54+ - name : Deploy to GitHub Pages
55+ id : deployment
56+ uses : actions/deploy-pages@v4
You can’t perform that action at this time.
0 commit comments