Skip to content

Commit

Permalink
Update CD.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
sushithegreat authored Oct 24, 2022
1 parent f04dcbd commit d12a3f8
Showing 1 changed file with 10 additions and 5 deletions.
15 changes: 10 additions & 5 deletions .github/workflows/CD.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,15 @@ jobs:
package-name: shipengine

- uses: actions/[email protected]


- name: Build with Maven
run: mvn clean compile -Dmaven.test.skip=true && mvn package -Dmaven.test.skip=true && mvn verify -Dmaven.test.skip=true

- name: Publish to GitHub Packages Apache Maven
run: mvn deploy
env:
GITHUB_TOKEN: ${{ github.token }} # GITHUB_TOKEN is the default env for the password

- name: Setup Java
uses: actions/[email protected]
with:
Expand All @@ -30,11 +38,8 @@ jobs:
server-password: OSSRH_TOKEN # env variable for token in deploy
gpg-private-key: ${{ secrets.MAVEN_GPG_PRIVATE_KEY }} # Value of the GPG private key to import
gpg-passphrase: MAVEN_GPG_PASSPHRASE # env variable for GPG private key passphrase

- name: Build with Maven
run: mvn -B package --file pom.xml

- name: Publish package to Maven
- name: Publish package to Maven Central
run: |
mvn -X --batch-mode deploy -Dmaven.test.skip=true
env:
Expand Down

0 comments on commit d12a3f8

Please sign in to comment.