Skip to content

Commit

Permalink
test
Browse files Browse the repository at this point in the history
  • Loading branch information
ds-jhartmann committed Jun 29, 2023
1 parent 2946ece commit 1dfdfe3
Show file tree
Hide file tree
Showing 2 changed files with 37 additions and 1 deletion.
30 changes: 30 additions & 0 deletions .github/workflows/release-package.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
name: Publish package to GitHub Packages
on:
release:
types: [created]
jobs:
publish:
runs-on: ubuntu-latest
permissions:
contents: read
packages: write
steps:
- uses: actions/checkout@v3

- name: Set up JDK 17
uses: actions/setup-java@v3
with:
java-version: '17'
distribution: 'temurin'

- name: Cache maven packages
uses: actions/cache@v3
with:
path: ~/.m2
key: ${{ runner.os }}-m2-${{ hashFiles('**/pom.xml') }}
restore-keys: ${{ runner.os }}-m2

- name: Publish package
run: mvn --batch-mode deploy
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
8 changes: 7 additions & 1 deletion irs-edc-client/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,13 @@
<artifactId>irs-edc-client</artifactId>
<name>EDC Client</name>
<description>Client library to easily talk to the EDC</description>

<distributionManagement>
<repository>
<id>github</id>
<name>GitHub Packages</name>
<url>https://maven.pkg.github.com/ds-jhartmann/item-relationship-service</url>
</repository>
</distributionManagement>
<dependencies>
<dependency>
<groupId>org.eclipse.tractusx.irs</groupId>
Expand Down

0 comments on commit 1dfdfe3

Please sign in to comment.