Merge pull request #6017 from eXist-db/dependabot/maven/geotools.vers… #283
This file contains hidden or 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 Snaphots to Github Packages | |
| on: | |
| push: | |
| branches: | |
| - develop | |
| workflow_dispatch: # Allow manual triggering | |
| jobs: | |
| publish-snapshots: | |
| name: Deploy Snapshots | |
| runs-on: ubuntu-latest | |
| if: github.ref == 'refs/heads/develop' | |
| steps: | |
| - uses: actions/checkout@v6 | |
| with: | |
| fetch-depth: 1 | |
| - name: Set up JDK 21 | |
| uses: actions/setup-java@v5 | |
| with: | |
| distribution: liberica | |
| java-version: '21' | |
| server-id: github | |
| settings-path: ${{ github.workspace }} | |
| - name: Cache Maven packages | |
| uses: actions/cache@v5 | |
| with: | |
| path: ~/.m2 | |
| key: deploy-${{ runner.os }}-maven-${{ hashFiles('**/pom.xml') }} | |
| restore-keys: deploy-${{ runner.os }}-maven | |
| - name: Deploy SNAPSHOT maven artefacts | |
| env: | |
| GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | |
| run: | | |
| mvn -V -B -q -DskipTests -Ddependency-check.skip=true \ | |
| -s $GITHUB_WORKSPACE/settings.xml \ | |
| -P !mac-dmg-on-unix,!installer,!concurrency-stress-tests,!micro-benchmarks,skip-build-dist-archives \ | |
| clean deploy |