File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -33,25 +33,32 @@ jobs:
3333 distribution : jdkfile
3434 java-version : 17
3535 jdkFile : ${{ steps.download-java-temurin-8.outputs.jdkFile }}
36- - name : Cache sbt
37- uses : actions/cache@v3
36+ - name : Setup SBT
37+ uses : Jtalk/setup-sbt@v2.0.0
3838 with :
39- path : |
40- ~/.sbt
41- ~/.ivy2/cache
42- ~/.coursier/cache/v1
43- ~/.cache/coursier/v1
44- ~/AppData/Local/Coursier/Cache/v1
45- ~/Library/Caches/Coursier/v1
46- key : ${{ runner.os }}-sbt-cache-v2-${{ hashFiles('**/*.sbt') }}-${{ hashFiles('project/build.properties') }}
39+ version : 1.10.6
4740
4841 - name : Generate site
4942 run : sbt '++ ${{ matrix.scala }}' web/fullBuild
5043
51- - name : Publish site
52- uses : peaceiris/actions-gh-pages@v3.9.0
53- with :
54- github_token : ${{ secrets.GITHUB_TOKEN }}
55- publish_dir : web/target/webpage
56- keep_files : true
44+ - name : Setup Pages
45+ id : pages
46+ uses : actions/configure-pages@v5
47+
48+ - name : Upload artifact
49+ # Automatically uploads an artifact from the './_site' directory by default
50+ uses : actions/upload-pages-artifact@v3
51+ with :
52+ path : web/target/webpage
53+ # Deployment job
54+ deploy :
55+ environment :
56+ name : github-pages
57+ url : ${{ steps.deployment.outputs.page_url }}
58+ runs-on : ubuntu-latest
59+ needs : build
60+ steps :
61+ - name : Deploy to GitHub Pages
62+ id : deployment
63+ uses : actions/deploy-pages@v4
5764
You can’t perform that action at this time.
0 commit comments