Skip to content

Merge pull request #5607 from duncdrum/fix-snapshot-deploy #7

Merge pull request #5607 from duncdrum/fix-snapshot-deploy

Merge pull request #5607 from duncdrum/fix-snapshot-deploy #7

Workflow file for this run

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@v4
with:
fetch-depth: 1
- name: Set up JDK 17
uses: actions/setup-java@v4
with:
distribution: liberica
java-version: '17'
server-id: github
settings-path: ${{ github.workspace }}
- name: Cache Maven packages
uses: actions/cache@v4
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