deploy branch jar to github packages maven repo

This commit is contained in:
Chris Frohoff
2022-06-24 19:53:37 -07:00
parent c8e203e358
commit 5581a773eb
2 changed files with 26 additions and 0 deletions
+19
View File
@@ -0,0 +1,19 @@
name: Publish package to GitHub Packages
on: [push]
jobs:
publish:
runs-on: ubuntu-latest
permissions:
contents: read
packages: write
steps:
- uses: actions/checkout@v3
- uses: actions/setup-java@v3
with:
java-version: '8'
distribution: 'adopt'
- name: Publish package
run: mvn --batch-mode deploy -DrepositoryId=github -Dversion=${GITHUB_REF_NAME}-SNAPSHOT
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
+7
View File
@@ -483,4 +483,11 @@
</profile> </profile>
</profiles> </profiles>
<distributionManagement>
<repository>
<id>github</id>
<name>GitHub Packages</name>
<url>https://maven.pkg.github.com/frohoff/ysoserial</url>
</repository>
</distributionManagement>
</project> </project>