From ea63a545f2081ddf067471eb16331f10d302dc00 Mon Sep 17 00:00:00 2001 From: bsorrentino Date: Wed, 11 Nov 2020 13:09:01 +0100 Subject: [PATCH] Create jdk8-deploy.yml add github action --- .github/workflows/jdk8-deploy.yml | 30 ++++++++++++++++++++++++++++++ 1 file changed, 30 insertions(+) create mode 100644 .github/workflows/jdk8-deploy.yml diff --git a/.github/workflows/jdk8-deploy.yml b/.github/workflows/jdk8-deploy.yml new file mode 100644 index 0000000..56c3e67 --- /dev/null +++ b/.github/workflows/jdk8-deploy.yml @@ -0,0 +1,30 @@ +# This workflow will build a package using Maven and then publish it to GitHub packages when a release is created +# For more information see: https://github.com/actions/setup-java#apache-maven-with-a-settings-path + +name: Maven Package + +on: + push: + branches: [ support/4.x-jdk8 ] + +jobs: + build: + + runs-on: ubuntu-latest + + steps: + - uses: actions/checkout@v2 + - name: Set up JDK 1.8 + uses: actions/setup-java@v1 + with: + java-version: 1.8 + server-id: github # Value of the distributionManagement/repository/id field of the pom.xml + settings-path: ${{ github.workspace }} # location for the settings.xml file + + - name: Build with Maven + run: mvn -B package --file pom.xml + + - name: Publish to GitHub Packages Apache Maven + run: mvn deploy -s $GITHUB_WORKSPACE/settings.xml + env: + GITHUB_TOKEN: ${{ github.token }}