Skip to content

Commit dd949d4

Browse files
committed
Clean up, bug fix and maven setup?
1 parent ef89f13 commit dd949d4

File tree

2 files changed

+37
-0
lines changed

2 files changed

+37
-0
lines changed

.github/workflows/maven.yml

Lines changed: 34 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,34 @@
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

build.gradle

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff 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
}
8992
loom {

0 commit comments

Comments
 (0)