-
Notifications
You must be signed in to change notification settings - Fork 75
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
bc14a86
commit c2db9b2
Showing
1 changed file
with
39 additions
and
0 deletions.
There are no files selected for viewing
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,39 @@ | ||
name: Deploy Snapshots | ||
|
||
on: | ||
push: | ||
branches: ['master', '1.x'] | ||
|
||
repository_dispatch: | ||
types: ['deploy-snapshots'] | ||
|
||
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-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: ugandaemr-ci | ||
BINTRAY_PASSWORD: ${{ secrets.BINTRAY_PASSWORD }} |