Skip to content

Commit 97e83cb

Browse files
authored
Update snapshot_deploy.yml
Use the new workflow
1 parent e137f1e commit 97e83cb

File tree

1 file changed

+12
-23
lines changed

1 file changed

+12
-23
lines changed

.github/workflows/snapshot_deploy.yml

Lines changed: 12 additions & 23 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@ name: Snapshot Deploy
33
concurrency:
44
group: ${{ github.ref }}-${{ github.workflow }}
55
cancel-in-progress: true
6+
67
on:
78
workflow_dispatch:
89
push:
@@ -12,28 +13,16 @@ defaults:
1213
run:
1314
shell: bash
1415

16+
permissions:
17+
attestations: write
18+
id-token: write
19+
contents: read
20+
1521
jobs:
1622
deploy-snapshot:
17-
runs-on: ubuntu-latest
18-
name: Deploy Snapshot artifacts
19-
steps:
20-
- uses: actions/checkout@v4
21-
22-
- uses: actions/setup-java@v4
23-
with:
24-
distribution: 'temurin'
25-
java-version: 17
26-
cache: 'maven'
27-
server-id: 'ossrh'
28-
server-username: MAVEN_USERNAME
29-
server-password: MAVEN_PASSWORD
30-
gpg-private-key: ${{ secrets.GPG_PRIVATE_KEY }}
31-
gpg-passphrase: MAVEN_GPG_PASSPHRASE
32-
33-
- name: Deploy ${{steps.metadata.outputs.next-version}}
34-
run: |
35-
mvn -B clean deploy -DskipTests -DperformRelease=true -Drelease
36-
env:
37-
MAVEN_USERNAME: ${{ secrets.OSSRH_USERNAME }}
38-
MAVEN_PASSWORD: ${{ secrets.OSSRH_TOKEN }}
39-
MAVEN_GPG_PASSPHRASE: ${{ secrets.GPG_PASSPHRASE }}
23+
name: Deploy Snapshots
24+
uses: quarkiverse/.github/.github/workflows/perform-release.yml@main
25+
secrets: inherit
26+
with:
27+
ref: main
28+
version: 3.0.0-SNAPSHOT

0 commit comments

Comments
 (0)