diff --git a/.github/workflows/mvn-deploy.yaml b/.github/workflows/mvn-deploy.yaml new file mode 100644 index 0000000..71faec2 --- /dev/null +++ b/.github/workflows/mvn-deploy.yaml @@ -0,0 +1,36 @@ +name: Maven Deploy + +on: + push: + branches: + - master + +jobs: + build: + + runs-on: ubuntu-latest + + steps: + - uses: actions/checkout@v1 + - name: Set up JDK 8 + uses: actions/setup-java@v1 + with: + java-version: 8 + - name: Maven build + run: mvn --file pom.xml package + + deploy: + + runs-on: ubuntu-latest + + steps: + - uses: actions/checkout@v1 + - name: Set up JDK 8 + uses: actions/setup-java@v1 + with: + java-version: 8 + - name: Deploy to Github Package Registry + env: + GITHUB_USERNAME: ${{ secrets.GITHUB_USERNAME }} + GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} + run: mvn --settings settings.xml --file pom.xml deploy