diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml new file mode 100644 index 0000000..5e26ab7 --- /dev/null +++ b/.github/workflows/main.yml @@ -0,0 +1,24 @@ +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@m1.7.2 + env: + SSH_DEPLOY_KEY: ${{ secrets.SSH_DEPLOY_KEY }} + with: + source-directory: 'snapshots' + destination-github-username: 'Yolean' + destination-repository-name: 'yolean.github.io' + target-branch: mavenrepo