forked from graphhopper/graphhopper
-
Notifications
You must be signed in to change notification settings - Fork 20
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix(pom): Fix repo location in workflow as well
- Loading branch information
1 parent
e4831c6
commit a3a4013
Showing
2 changed files
with
22 additions
and
17 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 |
---|---|---|
|
@@ -37,19 +37,29 @@ jobs: | |
key: ${{ runner.os }}-node-${{ hashFiles('**/pom.xml', '**/package.json') }} | ||
restore-keys: | | ||
${{ runner.os}}-node_modules- | ||
- uses: s4u/[email protected] | ||
with: | ||
servers: | | ||
[{ | ||
"id": "heigit-nexus-snapshots", | ||
"username": "${{ secrets.NEXUS_USERNAME }}", | ||
"password": "${{ secrets.NEXUS_PASSWORD }}" | ||
}, { | ||
"id": "heigit-nexus-releases", | ||
"username": "${{ secrets.NEXUS_USERNAME }}", | ||
"password": "${{ secrets.NEXUS_PASSWORD }}" | ||
}] | ||
- name: Build and publish package on snapshot | ||
if: github.event_name == 'push' && github.event_name != 'release' | ||
run: | | ||
mvn -B -DskipTests source:jar deploy | ||
mvn -B -DskipTests -Pskip-shaded-web-jar -Pskip-tools-jar source:jar deploy | ||
env: | ||
RT_USERNAME: ${{ secrets.RT_USERNAME }} | ||
RT_PASSWORD: ${{ secrets.RT_PASSWORD }} | ||
NEXUS_BASE_URL: ${{ vars.NEXUS_BASE_URL }} | ||
# Write a task to publish the package to GitHub Packages when a release is published | ||
- name: Build and publish package on release | ||
if: github.event_name == 'release' | ||
run: | | ||
mvn versions:set -DnewVersion=${{ github.event.release.tag_name }} -DgenerateBackupPoms=false | ||
mvn -B -DskipTests source:jar deploy | ||
mvn -B -DskipTests -Pskip-shaded-web-jar -Pskip-tools-jar source:jar deploy | ||
env: | ||
RT_USERNAME: ${{ secrets.RT_USERNAME }} | ||
RT_PASSWORD: ${{ secrets.RT_PASSWORD }} | ||
NEXUS_BASE_URL: ${{ vars.NEXUS_BASE_URL }} |
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