Skip to content

Commit

Permalink
fix: github package deployment
Browse files Browse the repository at this point in the history
  • Loading branch information
juliengalet committed Apr 28, 2021
1 parent 487b302 commit 6c753c3
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 3 deletions.
7 changes: 4 additions & 3 deletions .github/workflows/maven-github-packages-deploy.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ name: Java GitHub CD with Maven

on:
release:
types: [created]
types: [ created ]
jobs:
build:
runs-on: ubuntu-latest
Expand All @@ -20,6 +20,7 @@ jobs:
run: mvn -B package --file pom.xml

- name: Publish to GitHub Packages Apache Maven
run: mvn deploy -s $GITHUB_WORKSPACE/settings.xml
run: mvn deploy --file pom.xml -s settings.xml
env:
GITHUB_TOKEN: ${{ github.token }}
USENAME: ${{github.actor}}
PASSWORD: ${{github.token}}
9 changes: 9 additions & 0 deletions settings.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
<settings xmlns="http://maven.apache.org/SETTINGS/1.0.0">
<servers>
<server>
<id>github</id>
<username>${env.USERNAME}</username>
<password>${env.PASSWORD}</password>
</server>
</servers>
</settings>

0 comments on commit 6c753c3

Please sign in to comment.