Merge pull request #217 from EmanuelCR03/develop #138
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 Mifos Artifactory and GitHub Packages | |
on: | |
push: | |
branches: | |
- develop | |
jobs: | |
publish: | |
runs-on: ubuntu-latest | |
permissions: | |
contents: read | |
packages: write | |
steps: | |
- uses: actions/checkout@v4 | |
- name: Set up Java for publishing to Mifos Artifactory | |
uses: actions/setup-java@v4 | |
with: | |
java-version: '17' | |
distribution: 'zulu' | |
server-id: central | |
server-username: ARTIFACTORY_USERNAME | |
server-password: ARTIFACTORY_PASSWORD | |
- name: Publish to the Mifos Artifactory | |
run: mvn -Dmaven.test.skip=true --batch-mode deploy | |
env: | |
ARTIFACTORY_USERNAME: ${{ secrets.ARTIFACTORY_USERNAME }} | |
ARTIFACTORY_PASSWORD: ${{ secrets.ARTIFACTORY_PASSWORD }} |