Skip to content

Merge pull request #2755 from kubernetes-client/dependabot/maven/com.… #374

Merge pull request #2755 from kubernetes-client/dependabot/maven/com.…

Merge pull request #2755 from kubernetes-client/dependabot/maven/com.… #374

Workflow file for this run

name: Upload Snapshot
on:
push:
branches:
- master
workflow_dispatch: {}
permissions:
contents: read
jobs:
verify:
name: latest-images
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v3
- name: Setup Java
uses: actions/setup-java@v3
with:
distribution: 'temurin'
java-version: 17.0.x
server-id: ossrh
server-username: OSSRH_USERNAME
server-password: OSSRH_TOKEN
gpg-private-key: ${{ secrets.GPG_PRIVATE_KEY }}
gpg-passphrase: GPG_PASSPHRASE
- name: Assert Snapshot Version
run: |
./mvnw clean install -Dmaven.test.skip=true
./mvnw -q \
-Dexec.executable=echo \
-Dexec.args='${project.version}' \
exec:exec | perl -ne 'die unless m/.*-SNAPSHOT/'
- name: Publish to Apache Maven Central
run: ./mvnw deploy
env:
OSSRH_USERNAME: ${{ secrets.SNAPSHOT_UPLOAD_USER }}
OSSRH_TOKEN: ${{ secrets.SNAPSHOT_UPLOAD_PASSWORD }}
GPG_PASSPHRASE: ${{ secrets.GPG_PASSWORD }}