Merge tag '8.0' into osm-reader-callbacks-8.0 #4
Workflow file for this run
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
name: Publish to GitHub Packages | |
# ignore tags as the untagged commit has the same GITHUB_SHA and would conflict | |
on: | |
push: | |
branches: | |
- '**' | |
jobs: | |
publish: | |
if: github.repository_owner == 'graphhopper' | |
runs-on: ubuntu-20.04 | |
permissions: | |
contents: read | |
packages: write | |
steps: | |
- uses: actions/checkout@v3 | |
- uses: actions/setup-java@v3 | |
with: | |
java-version: 17 | |
distribution: temurin | |
- name: Cache Maven artifacts | |
uses: actions/cache@v3 | |
with: | |
path: ~/.m2/repository | |
key: ${{ runner.os }}-maven-${{ hashFiles('**/pom.xml') }} | |
restore-keys: | | |
${{ runner.os }}-maven- | |
- name: Cache node | |
uses: actions/cache@v3 | |
with: | |
path: web-bundle/node | |
key: ${{ runner.os }}-node-${{ hashFiles('**/pom.xml') }} | |
restore-keys: | | |
${{ runner.os}}-node- | |
- name: Cache node_modules | |
uses: actions/cache@v3 | |
with: | |
path: web-bundle/node_modules | |
key: ${{ runner.os }}-node-${{ hashFiles('**/pom.xml', '**/package.json') }} | |
restore-keys: | | |
${{ runner.os}}-node_modules- | |
- name: Build and publish package ${{ matrix.java-version }} | |
# special 'wagon' option due to https://github.com/orgs/community/discussions/49001 | |
run: | | |
mvn -B versions:set -DnewVersion=$GITHUB_SHA -DgenerateBackupPoms=false | |
mvn -Dmaven.resolver.transport=wagon -B -DskipTests -Pskip-shaded-web-jar -Pskip-tools-jar source:jar deploy | |
env: | |
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} |