Skip to content
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
47 changes: 18 additions & 29 deletions .github/workflows/snapshot_deploy.yml
Original file line number Diff line number Diff line change
@@ -1,39 +1,28 @@
name: Snapshot Deploy
name: Deploy Snapshot

concurrency:
group: ${{ github.ref }}-${{ github.workflow }}
cancel-in-progress: true
on:
workflow_dispatch:
push:
branches: [ main ]
# push:
# branches: [ main ]

defaults:
run:
shell: bash

jobs:
deploy-snapshot:
runs-on: ubuntu-latest
name: Deploy Snapshot artifacts
steps:
- uses: actions/checkout@v4
permissions:
attestations: write
id-token: write
contents: read

- 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
concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true

- 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 }}
jobs:
deploy-snapshot:
name: Deploy Snapshots
uses: quarkiverse/.github/.github/workflows/perform-release.yml@main
secrets: inherit
with:
ref: main
version: 999-SNAPSHOT
Loading