Merge pull request #337 from wultra/dependabot/maven/org.apache.maven… #165
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Deploy with Maven | |
on: | |
workflow_dispatch: | |
branches: | |
- 'develop' | |
- 'master' | |
- 'releases/*' | |
- 'test/ci' | |
inputs: | |
release_type: | |
type: choice | |
description: | |
default: snapshot | |
options: | |
- snapshot | |
- release | |
environment: | |
type: environment | |
default: internal-publish | |
description: internal or external repository | |
push: | |
branches: | |
- 'develop' | |
- 'test/ci' | |
jobs: | |
maven-deploy-internal: | |
if: ${{ github.event_name == 'push' }} | |
name: Deploy to ${{ inputs.environment }} | |
uses: wultra/wultra-infrastructure/.github/workflows/maven-deploy.yml@develop | |
with: | |
environment: internal-publish | |
release_type: snapshot | |
java_version: 21 | |
secrets: | |
username: ${{ secrets.MAVEN_CENTRAL_USERNAME }} | |
password: ${{ secrets.MAVEN_CENTRAL_PASSWORD }} | |
maven-deploy-public: | |
if: ${{ github.event_name == 'workflow_dispatch' }} | |
name: Deploy to ${{ inputs.environment }} | |
uses: wultra/wultra-infrastructure/.github/workflows/maven-deploy.yml@develop | |
with: | |
environment: ${{ inputs.environment }} | |
release_type: ${{ inputs.release_type }} | |
java_version: 21 | |
secrets: | |
username: ${{ secrets.MAVEN_CENTRAL_USERNAME }} | |
password: ${{ secrets.MAVEN_CENTRAL_PASSWORD }} | |
gpg_passphrase: ${{ secrets.OSSRH_GPG_SECRET_KEY_PASSWORD }} | |
gpg_key: ${{ secrets.OSSRH_GPG_SECRET_KEY }} |