File tree Expand file tree Collapse file tree 2 files changed +37
-0
lines changed
Expand file tree Collapse file tree 2 files changed +37
-0
lines changed Original file line number Diff line number Diff line change 1+ name : Publish Maven to GitHub Pages
2+
3+ on :
4+ push :
5+ tags :
6+ - " *"
7+
8+ jobs :
9+ publish :
10+ runs-on : ubuntu-latest
11+ permissions :
12+ contents : read
13+ pages : write
14+ id-token : write
15+
16+ steps :
17+ - uses : actions/checkout@v4
18+
19+ - name : Set up JDK 17
20+ uses : actions/setup-java@v4
21+ with :
22+ java-version : 17
23+ distribution : temurin
24+
25+ - name : Build & Publish to local repo
26+ run : ./gradlew clean build publish
27+
28+ - name : Upload Pages artifact
29+ uses : actions/upload-pages-artifact@v3
30+ with :
31+ path : build/repo
32+
33+ - name : Deploy to GitHub Pages
34+ uses : actions/deploy-pages@v4
Original file line number Diff line number Diff line change @@ -84,6 +84,9 @@ publishing {
8484 // Notice: This block does NOT have the same function as the block in the top level.
8585 // The repositories here will be used for publishing your artifact, not for
8686 // retrieving dependencies.
87+ maven {
88+ url = layout. buildDirectory. dir(" repo" )
89+ }
8790 }
8891}
8992loom {
You can’t perform that action at this time.
0 commit comments