Merge pull request #27 from eudson/master #38
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
# For every commit pushed to the master branch, this will compile, package, test, verify, and deploy | |
# This is only configured to deploy to the SNAPSHOTS repository, so is not intended to be used for releases | |
name: Deploy Snapshots | |
on: | |
push: | |
branches: ['master'] | |
jobs: | |
deploy: | |
runs-on: ubuntu-latest | |
steps: | |
# Check out the code | |
- uses: actions/checkout@v2 | |
# Enable caching of Maven dependencies to speed up job execution. See https://github.com/actions/cache | |
- uses: actions/cache@v1 | |
with: | |
path: ~/.m2/repository | |
key: ${{ runner.os }}-maven-${{ hashFiles('**/pom.xml') }} | |
restore-keys: | | |
${{ runner.os }}-maven- | |
# Set up Java 1.8 with Maven including a .m2/settings.xml file. See https://github.com/actions/setup-java | |
- name: Set up JDK 1.8 and Maven settings file | |
uses: actions/setup-java@v1 | |
with: | |
java-version: 1.8 | |
server-id: openmrs-repo-modules-rwandaemr-snapshots | |
server-username: BINTRAY_USERNAME | |
server-password: BINTRAY_PASSWORD | |
# Execute the Maven deploy command to compile, package, test, verify, and publish to SNAPSHOT repository | |
- name: Maven Deploy | |
run: mvn -B deploy --file pom.xml | |
env: | |
BINTRAY_USERNAME: ${{ secrets.MAVEN_REPOSITORY_USERNAME }} | |
BINTRAY_PASSWORD: ${{ secrets.MAVEN_REPOSITORY_PASSWORD }} |