Skip to content

Commit

Permalink
Publish Maven package to GitHub packages (#288)
Browse files Browse the repository at this point in the history
* add github maven repo

* add maven package publishing

* fix repository url

* change Maven repository URL
  • Loading branch information
PhilWun authored Jul 10, 2023
1 parent 0d66174 commit 8a0c1ab
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 0 deletions.
5 changes: 5 additions & 0 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@ on:
tags:
- "v*.*.*"
pull_request:
workflow_dispatch:

env:
REGISTRY: ghcr.io
Expand Down Expand Up @@ -45,6 +46,10 @@ jobs:
distribution: 'temurin'
java-version: 17
cache: 'maven'
- name: Publish package
run: mvn --batch-mode deploy
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
- name: Build with Maven
run: mvn -Pjava -B package
- name: Upload binary to artifacts
Expand Down
7 changes: 7 additions & 0 deletions pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,13 @@
<url>https://www.eclipse.org/winery</url>
</organization>
<inceptionYear>2012</inceptionYear>
<distributionManagement>
<repository>
<id>github</id>
<name>GitHub Packages</name>
<url>https://maven.pkg.github.com/OpenTOSCA/winery</url>
</repository>
</distributionManagement>
<mailingLists>
<mailingList>
<name>Winery Developer List</name>
Expand Down

0 comments on commit 8a0c1ab

Please sign in to comment.