From 031a3b4fdb7297d5be9f87cf48e1b0ef8303d62a Mon Sep 17 00:00:00 2001 From: duncdrum Date: Mon, 13 Jan 2025 19:59:24 +0100 Subject: [PATCH] [fix] snapshot CI config see #5603 --- .github/workflows/ci-snapshots.yml | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/.github/workflows/ci-snapshots.yml b/.github/workflows/ci-snapshots.yml index 31b6df8bb02..47b9889cc57 100644 --- a/.github/workflows/ci-snapshots.yml +++ b/.github/workflows/ci-snapshots.yml @@ -20,6 +20,8 @@ jobs: with: distribution: liberica java-version: '17' + server-id: github + settings-path: ${{ github.workspace }} - name: Cache Maven packages uses: actions/cache@v4 with: @@ -27,4 +29,10 @@ jobs: key: deploy-${{ runner.os }}-maven-${{ hashFiles('**/pom.xml') }} restore-keys: deploy-${{ runner.os }}-maven - name: Deploy SNAPSHOT maven artefacts - run: mvn -V -B -q -DskipTests -Ddependency-check.skip=true -P !mac-dmg-on-unix,!installer,!concurrency-stress-tests,!micro-benchmarks,skip-build-dist-archives clean deploy + env: + GITHUB_TOKEN: ${{ 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