Skip to content

Commit a909f04

Browse files
committed
Added package publishing
1 parent d77ca18 commit a909f04

File tree

2 files changed

+18
-0
lines changed

2 files changed

+18
-0
lines changed

.github/workflows/java.yaml

+10
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,11 @@ jobs:
1414

1515
- uses: nelonoel/[email protected]
1616

17+
- uses: actions/setup-java@v2
18+
with:
19+
java-version: '11'
20+
distribution: 'adopt'
21+
1722
- name: Set version number
1823
run: ./mvnw versions:set -DnewVersion=0.1.${{ github.run_number }}
1924

@@ -42,3 +47,8 @@ jobs:
4247
asset_name: randomquotesapi-lambda.0.1.${{ github.run_number }}.jar
4348
asset_content_type: application/zip
4449

50+
- name: Publish package
51+
run: mvn --batch-mode deploy
52+
env:
53+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
54+

pom.xml

+8
Original file line numberDiff line numberDiff line change
@@ -51,4 +51,12 @@
5151
</plugin>
5252
</plugins>
5353
</build>
54+
55+
<distributionManagement>
56+
<repository>
57+
<id>github</id>
58+
<name>GitHub Packages</name>
59+
<url>https://maven.pkg.github.com/OctopusSamples/RandomQuotesAPI-Java-AWS-Lambda</url>
60+
</repository>
61+
</distributionManagement>
5462
</project>

0 commit comments

Comments
 (0)