From c83d2d54054ab0479773e119f513d38d98fb63eb Mon Sep 17 00:00:00 2001 From: Lyn Elisa Goltz Date: Thu, 16 Nov 2023 07:23:11 +0100 Subject: [PATCH] #9243 - added build_push-release.yml --- .github/workflows/build_push-release.yml | 29 ++++++++++++++++++++++++ 1 file changed, 29 insertions(+) create mode 100644 .github/workflows/build_push-release.yml diff --git a/.github/workflows/build_push-release.yml b/.github/workflows/build_push-release.yml new file mode 100644 index 000000000..8a29f1f90 --- /dev/null +++ b/.github/workflows/build_push-release.yml @@ -0,0 +1,29 @@ +name: Build release and Push to Github Packages + +on: + push: + branches: [ "release" ] + +jobs: + build: + + runs-on: ubuntu-latest + + steps: + - uses: actions/checkout@v4 + with: + ref: 'master' #V1_6_6 + + - name: Set up JDK 11 + - uses: actions/setup-java@v2 + with: + distribution: 'zulu' + java-version: '11' + + - name: Build with Maven + run: mvn -B clean package -pl :pljava-api + + - name: Push artefact to Github Packages + run: mvn -B deploy -DaltDeploymentRepository=githublatlon::https://maven.pkg.github.com/lat-lon/pljava + env: + GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} \ No newline at end of file