Fix deployment of UgandaEMR module #706
This file contains hidden or 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: Deploy Snapshots | |
| on: | |
| push: | |
| branches: [master] | |
| repository_dispatch: | |
| types: ['deploy-snapshots'] | |
| jobs: | |
| deploy: | |
| runs-on: ubuntu-latest | |
| steps: | |
| # Check out the code | |
| - name: Check out repository | |
| uses: actions/checkout@v3 | |
| # Enable caching of Maven dependencies to speed up job execution | |
| - name: Cache Maven dependencies | |
| uses: actions/cache@v3 | |
| with: | |
| path: ~/.m2/repository | |
| key: ${{ runner.os }}-maven-${{ hashFiles('**/pom.xml') }} | |
| restore-keys: | | |
| ${{ runner.os }}-maven- | |
| # Set up Java 8 with Maven including a .m2/settings.xml file | |
| - name: Set up JDK 8 and Maven settings file | |
| uses: actions/setup-java@v3 | |
| with: | |
| distribution: 'temurin' # Change this to 'zulu' if needed | |
| java-version: '8' # This automatically selects the latest JDK 8 version | |
| server-id: openmrs-repo-snapshots | |
| server-username: secret_BINTRAY_USERNAME | |
| server-password: secret_BINTRAY_PASSWORD | |
| # Execute the Maven deploy command to compile, package, test, verify, and publish to the SNAPSHOT repository | |
| - name: Maven Deploy | |
| run: mvn -B deploy --file pom.xml | |
| env: | |
| secret_BINTRAY_USERNAME: ${{ secrets.BINTRAY_USERNAME }} | |
| secret_BINTRAY_PASSWORD: ${{ secrets.BINTRAY_PASSWORD }} |