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 : Publish package to GitHub Packages
2+
3+ on :
4+ push :
5+
6+ jobs :
7+ publish :
8+ runs-on : ubuntu-latest
9+ permissions :
10+ contents : read
11+ packages : write
12+ steps :
13+ - uses : actions/checkout@v4
14+ - uses : actions/setup-java@v4
15+ with :
16+ java-version : ' 8'
17+ distribution : ' temurin'
18+ - name : Publish package
19+ run : mvn --batch-mode deploy
20+ env :
21+ GITHUB_TOKEN : ${{ secrets.PACKAGE_TOKEN }}
Original file line number Diff line number Diff line change 3131 </developer >
3232 </developers >
3333
34+ <distributionManagement >
35+ <repository >
36+ <id >github</id >
37+ <name >GitHub Packages</name >
38+ <url >https://maven.pkg.github.com/ikmdev/demo-java-maven</url >
39+ </repository >
40+ </distributionManagement >
41+
42+ <properties >
43+ <maven .compiler.source>1.8</maven .compiler.source>
44+ <maven .compiler.target>1.8</maven .compiler.target>
45+ </properties >
46+
3447</project >
You can’t perform that action at this time.
0 commit comments