-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
f04dcbd
commit d12a3f8
Showing
1 changed file
with
10 additions
and
5 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -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: | ||
|
@@ -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: | ||
|