Skip to content

Update main.yml

Update main.yml #5

Workflow file for this run

name: Publish package to the Maven Central Repository
on:
push
jobs:
publish:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: Setup Java
uses: actions/setup-java@v3
with:
distribution: 'temurin'
java-version: '17'
- name: Publish package
run: mvn --batch-mode deploy
- name: Push to Yolean mavenrepo
uses: cpina/github-action-push-to-another-repository@main
env:
SSH_DEPLOY_KEY: ${{ secrets.SSH_DEPLOY_KEY }}
with:
source-directory: 'snapshots'
destination-github-username: 'Yolean'
destination-repository-name: 'yolean.github.io'
target-directory: 'snapshots/quarkus-mpxj'
target-branch: mavenrepo