File tree 3 files changed +24
-1
lines changed
3 files changed +24
-1
lines changed Original file line number Diff line number Diff line change 78
78
with :
79
79
tag_name : ${{ env.TAG_PREFIX }}${{ steps.version.outputs.new_version }}
80
80
env :
81
- GITHUB_TOKEN : ${{ secrets.GITHUB_TOKEN }}
81
+ GITHUB_TOKEN : ${{ secrets.GITHUB_TOKEN }}
82
+ - name : Upload static files as artifact
83
+ id : deployment
84
+ uses : actions/upload-pages-artifact@v3
85
+ with :
86
+ path : _site/
82
87
88
+ deploy :
89
+ environment :
90
+ name : github-pages
91
+ url : ${{ steps.deployment.outputs.page_url }}
92
+ runs-on : ubuntu-latest
93
+ needs : buildAndPublishPackage
94
+ steps :
95
+ - name : Deploy to GitHub Pages
96
+ id : deployment
97
+ uses : actions/deploy-pages@v4
83
98
Original file line number Diff line number Diff line change 3
3
.metals /
4
4
.vscode /
5
5
bundle.zip
6
+ _site /
Original file line number Diff line number Diff line change @@ -100,6 +100,13 @@ call(s"ls -l $bundleArchivePath").foreach(println)
100
100
call(s " mv bundle.zip $bundleFilePath" , cwd = tempDir).foreach(println)
101
101
println(s " ${GREEN }Bundle archive ready at $bundleFilePath${RESET }" )
102
102
103
+ println(s " ${GREEN }Uzipping scaladoc ... ${RESET }" )
104
+ val siteFolderPath = os.pwd / " _site"
105
+ val javadocFilePath = publishedFolder / " docs" / s " ${artefactName}-javadoc.jar "
106
+ os.makeDir.all(siteFolderPath)
107
+ call(s " unzip $javadocFilePath -d $siteFolderPath" )
108
+ println(s " ${GREEN }Scaladoc ready. ${RESET }" )
109
+
103
110
// ---------- UTILS ----------
104
111
105
112
def call (command : String , cwd : os.Path = os.pwd): Seq [String ] =
You can’t perform that action at this time.
0 commit comments