Skip to content

Merge pull request #6 from mozzy11/master #1

Merge pull request #6 from mozzy11/master

Merge pull request #6 from mozzy11/master #1

Workflow file for this run

name: Build and Deploy
on:
push:
branches: [master]
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: Set up JDK 11
uses: actions/setup-java@v1
with:
java-version: 11
- name: Cache local Maven repository
uses: actions/cache@v2
with:
path: ~/.m2/repository
key: ${{ runner.os }}-maven-${{ hashFiles('**/pom.xml') }}
restore-keys: |
${{ runner.os }}-maven-
- name: Build and Test
run: mvn --batch-mode --update-snapshots clean package -DskipTests
- name: Set settings.xml
uses: s4u/[email protected]
with:
servers: |
[{
"id": "uwdigi-repo-central",
"username": "${{ secrets.MAVEN_REPO_USERNAME }}",
"password": "${{ secrets.MAVEN_REPO_PASSWORD }}"
},
{
"id": "uwdigi-repo-snapshots",
"username": "${{ secrets.MAVEN_REPO_USERNAME }}",
"password": "${{ secrets.MAVEN_REPO_PASSWORD }}"
}]
if: ${{ github.ref == 'refs/heads/master' && github.repository_owner == 'I-TECH-UW' }}
- name: Deploy
run: mvn --batch-mode clean deploy -DskipTests
if: ${{ github.ref == 'refs/heads/master' && github.repository_owner == 'I-TECH-UW' }}