Skip to content

Commit 4d5a607

Browse files
Merge pull request #12 from ikmdev/feature/IAT-890-Packages-POC-Changes
Github Packages Configuration
2 parents 2c7e922 + 304919a commit 4d5a607

2 files changed

Lines changed: 34 additions & 0 deletions

File tree

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

pom.xml

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -31,4 +31,17 @@
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>

0 commit comments

Comments
 (0)