Skip to content

Commit

Permalink
Add settings action
Browse files Browse the repository at this point in the history
  • Loading branch information
codepitbull committed Aug 6, 2024
1 parent da6a14b commit 02a4ee9
Showing 1 changed file with 18 additions and 3 deletions.
21 changes: 18 additions & 3 deletions .github/workflows/etherip-package.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,6 @@ on:
concurrency:
group: ${{ github.ref }}-check
cancel-in-progress: true
env:
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
jobs:
publish:
runs-on: ubuntu-latest
Expand All @@ -24,5 +22,22 @@ jobs:
with:
distribution: 'adopt'
java-version: '11'
- uses: whelk-io/maven-settings-xml-action@7802f6aec16c9098b4798ad1f1d8ac75198194bd # v3.0.0
with:
repositories: >
[
{
"id": "github",
"url": "https://maven.pkg.github.com/hivemq/hivemq-edge"
}
]
servers: >
[
{
"id":"github",
"username":"${{ github.actor }}",
"password":"${{ secrets.GITHUB_TOKEN }}"
}
]
- name: Build and Publish
run: mvn package deploy:deploy-file -Durl=https://maven.pkg.github.com/hivemq/hivemq-edge -DrepositoryId=github -Dfile=target/etherip-1.0.0.jar -DpomFile=pom.xml -Dtoken=GH_TOKEN
run: mvn package deploy:deploy-file -DrepositoryId=github -Dfile=target/etherip-1.0.0.jar -DpomFile=pom.xml

0 comments on commit 02a4ee9

Please sign in to comment.