Skip to content

Commit

Permalink
Add disabled deploy-snapshots.yml to repository
Browse files Browse the repository at this point in the history
(cherry picked from commit 049397d)
  • Loading branch information
gastaldi authored and gsmet committed Feb 10, 2024
1 parent 68e1d46 commit 04fdc6e
Show file tree
Hide file tree
Showing 2 changed files with 42 additions and 1 deletion.
Original file line number Diff line number Diff line change
@@ -0,0 +1,40 @@
# This workflow will build and deploy a snapshot of your artifact to Sonatype Snapshots repository
name: Deploy Snapshots

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

defaults:
run:
shell: bash

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: {java.version}
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 Snapshot
run: |
mvn -B clean deploy -DperformRelease=true -Drelease
env:
MAVEN_USERNAME: ${{ secrets.OSSRH_USERNAME }}
MAVEN_PASSWORD: ${{ secrets.OSSRH_TOKEN }}
MAVEN_GPG_PASSPHRASE: ${{ secrets.GPG_PASSPHRASE }}
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@ quarkus-my-quarkiverse-ext/.github/dependabot.yml
quarkus-my-quarkiverse-ext/.github/project.yml
quarkus-my-quarkiverse-ext/.github/workflows/
quarkus-my-quarkiverse-ext/.github/workflows/build.yml
quarkus-my-quarkiverse-ext/.github/workflows/deploy-snapshots.yml.disabled
quarkus-my-quarkiverse-ext/.github/workflows/pre-release.yml
quarkus-my-quarkiverse-ext/.github/workflows/quarkus-snapshot.yaml
quarkus-my-quarkiverse-ext/.github/workflows/release.yml
Expand Down Expand Up @@ -107,4 +108,4 @@ quarkus-my-quarkiverse-ext/runtime/src/main/java/io/quarkiverse/my/quarkiverse/e
quarkus-my-quarkiverse-ext/runtime/src/main/java/io/quarkiverse/my/quarkiverse/ext/runtime/
quarkus-my-quarkiverse-ext/runtime/src/main/resources/
quarkus-my-quarkiverse-ext/runtime/src/main/resources/META-INF/
quarkus-my-quarkiverse-ext/runtime/src/main/resources/META-INF/quarkus-extension.yaml
quarkus-my-quarkiverse-ext/runtime/src/main/resources/META-INF/quarkus-extension.yaml

0 comments on commit 04fdc6e

Please sign in to comment.