Skip to content

Commit

Permalink
Add GH packages configuration
Browse files Browse the repository at this point in the history
  • Loading branch information
mdeverdelhan committed May 9, 2020
1 parent d9bfd8a commit c43eb3e
Show file tree
Hide file tree
Showing 3 changed files with 31 additions and 0 deletions.
File renamed without changes.
23 changes: 23 additions & 0 deletions .github/workflows/maven-deploy-release.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@

# For more information see: https://help.github.com/en/actions/language-and-framework-guides/publishing-java-packages-with-maven

name: Publish to GitHub Packages

on:
release:
types: [created]

jobs:
publish:

runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v2
- uses: actions/setup-java@v1
with:
java-version: 11
- name: Publish package
run: mvn -B deploy
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
8 changes: 8 additions & 0 deletions pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,14 @@
<java.version>11</java.version>
</properties>

<distributionManagement>
<repository>
<id>github</id>
<name>GitHub Packages</name>
<url>https://maven.pkg.github.com/mdeverdelhan/topaz512-driver</url>
</repository>
</distributionManagement>

<dependencies>
<dependency>
<groupId>org.junit.jupiter</groupId>
Expand Down

0 comments on commit c43eb3e

Please sign in to comment.