Skip to content

Commit

Permalink
Update snapshot_deploy.yml (quarkiverse#916)
Browse files Browse the repository at this point in the history
Use the new workflow

(cherry picked from commit 59031b8)
  • Loading branch information
gastaldi authored and hbelmiro committed Dec 17, 2024
1 parent 287965b commit fe25fff
Showing 1 changed file with 12 additions and 23 deletions.
35 changes: 12 additions & 23 deletions .github/workflows/snapshot_deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@ name: Snapshot Deploy
concurrency:
group: ${{ github.ref }}-${{ github.workflow }}
cancel-in-progress: true

on:
workflow_dispatch:
push:
Expand All @@ -12,28 +13,16 @@ defaults:
run:
shell: bash

permissions:
attestations: write
id-token: write
contents: read

jobs:
deploy-snapshot:
runs-on: ubuntu-latest
name: Deploy Snapshot artifacts
steps:
- uses: actions/checkout@v4

- uses: actions/setup-java@v4
with:
distribution: 'temurin'
java-version: 17
cache: 'maven'
server-id: 'ossrh'
server-username: MAVEN_USERNAME
server-password: MAVEN_PASSWORD
gpg-private-key: ${{ secrets.GPG_PRIVATE_KEY }}
gpg-passphrase: MAVEN_GPG_PASSPHRASE

- name: Deploy ${{steps.metadata.outputs.next-version}}
run: |
mvn -B clean deploy -DskipTests -DperformRelease=true -Drelease
env:
MAVEN_USERNAME: ${{ secrets.OSSRH_USERNAME }}
MAVEN_PASSWORD: ${{ secrets.OSSRH_TOKEN }}
MAVEN_GPG_PASSPHRASE: ${{ secrets.GPG_PASSPHRASE }}
name: Deploy Snapshots
uses: quarkiverse/.github/.github/workflows/perform-release.yml@main
secrets: inherit
with:
ref: main
version: 3.0.0-SNAPSHOT

0 comments on commit fe25fff

Please sign in to comment.