Skip to content

Commit

Permalink
ci: manual deployment
Browse files Browse the repository at this point in the history
Sometimes maven repo is unavailable, this action allows to re-run deployment
  • Loading branch information
nsenave committed Dec 16, 2024
1 parent d6fdd9d commit 66bb0dd
Showing 1 changed file with 28 additions and 0 deletions.
28 changes: 28 additions & 0 deletions .github/workflows/manual-deploy.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
name: Manual deployment
# Use with caution

on:
workflow_dispatch:

jobs:

deploy-maven-repo:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Set up Maven Central Repository
uses: actions/setup-java@v4
with:
java-version: '21'
distribution: 'temurin'
server-id: ossrh
server-username: MAVEN_USERNAME
server-password: MAVEN_PASSWORD
gpg-private-key: ${{ secrets.MAVEN_GPG_PRIVATE_KEY }}
gpg-passphrase: MAVEN_GPG_PASSPHRASE
- name: Deploy with Maven
run: mvn --batch-mode clean deploy -Pdeploy -DskipTests=true --no-transfer-progress
env:
MAVEN_USERNAME: ${{ secrets.OSSRH_USERNAME }}
MAVEN_PASSWORD: ${{ secrets.OSSRH_TOKEN }}
MAVEN_GPG_PASSPHRASE: ${{ secrets.MAVEN_GPG_PASSPHRASE }}

0 comments on commit 66bb0dd

Please sign in to comment.