Merge pull request #43 from camunda-community-hub/dependabot/maven/or… #77
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
# If this workflow is triggered by a push to master, it | |
# deploys a SNAPSHOT | |
# If this workflow is triggered by publishing a Release, it | |
# deploys a RELEASE with the selected version | |
# updates the project version by incrementing the patch version | |
# commits the version update change to the repository's default branch. | |
name: Deploy artifacts with Maven | |
on: | |
push: | |
branches: [master] | |
release: | |
types: [published] | |
jobs: | |
publish: | |
runs-on: ubuntu-20.04 | |
steps: | |
- name: Checks out code | |
uses: actions/checkout@v3 | |
- name: Setup Java | |
uses: actions/setup-java@v3 | |
with: | |
distribution: zulu | |
java-version: 11 | |
cache: maven | |
gpg-private-key: ${{ secrets.MAVEN_CENTRAL_GPG_SIGNING_KEY_SEC }} | |
gpg-passphrase: MAVEN_CENTRAL_GPG_PASSPHRASE | |
- name: Deploy SNAPSHOT / Release | |
uses: camunda-community-hub/community-action-maven-release@main | |
with: | |
release-version: ${{ github.event.release.tag_name }} | |
release-profile: community-action-maven-release | |
nexus-usr: ${{ secrets.NEXUS_USR }} | |
nexus-psw: ${{ secrets.NEXUS_PSW }} | |
maven-usr: ${{ secrets.MAVEN_CENTRAL_DEPLOYMENT_USR }} | |
maven-psw: ${{ secrets.MAVEN_CENTRAL_DEPLOYMENT_PSW }} | |
maven-gpg-passphrase: ${{ secrets.MAVEN_CENTRAL_GPG_SIGNING_KEY_PASSPHRASE }} | |
github-token: ${{ secrets.GITHUB_TOKEN }} | |
maven-auto-release-after-close: true | |
artifacts-pattern: "" | |
id: release |