Skip to content

chore(deps): bump org.apache.maven.plugins:maven-source-plugin (#244) #59

chore(deps): bump org.apache.maven.plugins:maven-source-plugin (#244)

chore(deps): bump org.apache.maven.plugins:maven-source-plugin (#244) #59

Workflow file for this run

on:
push:
branches:
- main
name: release
jobs:
release:
runs-on: ubuntu-latest
outputs:
release_created: ${{ steps.release.outputs.release_created }}
pr: ${{ steps.release.outputs.pr }}
steps:
- id: release
uses: google-github-actions/release-please-action@v4
with:
release-type: maven
package-name: com.redhat.cloud.common.clowder-quarkus-config-source
auto-merge-snapshot:
needs: [ release ]
runs-on: ubuntu-latest
if: "${{ needs.release.outputs.pr && contains(fromJSON(needs.release.outputs.pr).labels, 'autorelease: snapshot') }}"
steps:
- id: auto-merge
uses: "pascalgn/automerge-action@v0.16.2"
env:
MERGE_LABELS: "autorelease: snapshot"
MERGE_METHOD: rebase
MERGE_RETRIES: 10
MERGE_RETRY_SLEEP: 10000
PULL_REQUEST: ${{ fromJSON(needs.release.outputs.pr).number }}
GITHUB_TOKEN: "${{ secrets.GITHUB_TOKEN }}"
publish:
needs: [ release ]
runs-on: ubuntu-latest
if: ${{ needs.release.outputs.release_created }}
steps:
- uses: actions/checkout@v4
with:
submodules: true
- name: Set up Maven Central Repository
uses: actions/setup-java@v4
with:
java-version: 17
distribution: adopt
server-id: jboss.staging
server-username: MAVEN_USERNAME
server-password: MAVEN_PASSWORD
- name: Publish package
run: mvn --batch-mode javadoc:jar source:jar deploy
env:
MAVEN_USERNAME: ${{ secrets.MAVEN_USERNAME }}
MAVEN_PASSWORD: ${{ secrets.MAVEN_PASSWORD }}