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