added github as the project.scm.id #8
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: Publish package to the yolean-github.io Repository | |
on: | |
push: | |
paths: | |
- 'deployment/**' | |
- 'integration-tests/**' | |
- 'runtime/**' | |
- 'pom.xml' | |
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' | |
target-branch: mavenrepo |