Skip to content

Bump org.camunda.community:community-hub-release-parent (#37) #14

Bump org.camunda.community:community-hub-release-parent (#37)

Bump org.camunda.community:community-hub-release-parent (#37) #14

Workflow file for this run

name: Deploy artifacts with Maven
on:
push:
branches: [main]
release:
types: [published]
workflow_dispatch:
jobs:
publish-maven:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: Set up Java environment
uses: actions/setup-java@v3
with:
java-version: '17'
distribution: 'temurin'
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@v1
with:
maven-release-options: -Dspotless.apply.skip
maven-additional-options: -Dspotless.apply.skip
release-version: ${{ github.event.release.tag_name }}
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-url: oss.sonatype.org
maven-gpg-passphrase: ${{ secrets.MAVEN_CENTRAL_GPG_SIGNING_KEY_PASSPHRASE }}
maven-auto-release-after-close: true
github-token: ${{ secrets.GITHUB_TOKEN }}
id: release
- if: github.event.release
name: Attach artifacts to GitHub Release (Release only)
uses: actions/upload-release-asset@v1
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
upload_url: ${{ github.event.release.upload_url }}
asset_path: ${{ steps.release.outputs.artifacts_archive_path }}
asset_name: internal-task-handler-camunda-7.zip
asset_content_type: application/zip