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 : CI / Scaladoc / Deploy
2+
3+ on :
4+ push :
5+ branches : [ master ]
6+ workflow_dispatch :
7+
8+ jobs :
9+ build :
10+ runs-on : ubuntu-latest
11+
12+ steps :
13+ - name : Checkout repository
14+ uses : actions/checkout@v4
15+
16+ - name : Setup Java
17+ uses : actions/setup-java@v4
18+ with :
19+ distribution : temurin
20+ java-version : 17
21+
22+ - name : Cache sbt
23+ uses : actions/cache@v4
24+ with :
25+ path : |
26+ ~/.ivy2/cache
27+ ~/.sbt
28+ ~/.cache/coursier
29+ key : sbt-${{ runner.os }}-${{ hashFiles('**/*.sbt') }}
30+ restore-keys : sbt-${{ runner.os }}-
31+
32+ - name : Compile
33+ run : sbt compile
34+
35+ - name : Generate Scaladoc
36+ run : sbt doc
37+
38+ - name : Upload Scaladoc artifact
39+ uses : actions/upload-artifact@v4
40+ with :
41+ name : scaladoc
42+ path : target/scala-2.13/api
43+
44+ deploy :
45+ needs : build
46+ runs-on : ubuntu-latest
47+
48+ steps :
49+ - name : Checkout repository
50+ uses : actions/checkout@v4
51+ with :
52+ fetch-depth : 0
53+
54+ - name : Download generated Scaladoc
55+ uses : actions/download-artifact@v4
56+ with :
57+ name : scaladoc
58+ path : scaladoc
59+
60+ - name : Setup Pages
61+ uses : actions/configure-pages@v4
62+
63+ - name : Upload to GitHub Pages
64+ uses : actions/upload-pages-artifact@v3
65+ with :
66+ path : scaladoc
67+
68+ - name : Deploy to GitHub Pages
69+ id : deployment
70+ uses : actions/deploy-pages@v4
You can’t perform that action at this time.
0 commit comments