1.2.5 #2
Workflow file for this run
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: Deploy release | |
on: | |
release: | |
types: [ published ] | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
strategy: | |
matrix: | |
node-version: [ 14.x ] | |
steps: | |
- uses: actions/checkout@v2 | |
- name: Use Node.js ${{ matrix.node-version }} | |
uses: actions/setup-node@v1 | |
with: | |
node-version: ${{ matrix.node-version }} | |
- run: npm ci | |
- run: npm list @openmrs/react-components || true | |
- run: npm run build --if-present | |
- run: npm test | |
- name: Set up JDK 1.8 and Maven settings file | |
uses: actions/setup-java@v1 | |
with: | |
java-version: 1.8 | |
server-id: openmrs-repo-owa | |
server-username: MAVEN_REPO_USERNAME | |
server-password: MAVEN_REPO_PASSWORD | |
- name: Deploy to Maven | |
run: mvn deploy:deploy-file -Pdeploy-release | |
env: | |
MAVEN_REPO_USERNAME: ${{ secrets.MAVEN_REPO_USERNAME }} | |
MAVEN_REPO_PASSWORD: ${{ secrets.MAVEN_REPO_API_KEY }} |