diff --git a/.github/workflows/ci-mapped.yml b/.github/workflows/ci-mapped.yml new file mode 100644 index 0000000000..113e2b2be8 --- /dev/null +++ b/.github/workflows/ci-mapped.yml @@ -0,0 +1,44 @@ +# Copyright 2021 JanusGraph Authors +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +name: Publish package to GitHub Packages +on: + release: + types: [created] +jobs: + publish: + runs-on: ubuntu-latest + permissions: + contents: read + packages: write + steps: + - uses: actions/checkout@v3 + - uses: actions/setup-java@v3 + with: + distribution: 'zulu' + java-version: '8.0.372+7' + java-package: jdk + + - name: Setup unique version + run: mvn versions:set -DnewVersion=$(date +%s) -DgenerateBackupPoms=false + + - name: Compile and prepare release + run: mvn clean install -Pjanusgraph-release -Dgpg.skip=true -DskipTests=true + env: + GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} + + - name: Deploy release + run: mvn deploy -Pjanusgraph-release -Dgpg.skip=true -DskipTests=true + env: + GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} diff --git a/janusgraph-dist/pom.xml b/janusgraph-dist/pom.xml index 0bde12bf7b..029d680df0 100644 --- a/janusgraph-dist/pom.xml +++ b/janusgraph-dist/pom.xml @@ -26,8 +26,6 @@ janusgraph-${project.version} janusgraph-full-${project.version} - eclipse-temurin:11-jre - ${project.build.directory}/test-classes @@ -322,8 +320,6 @@ janusgraph-java-11-${project.version} janusgraph-java-11-full-${project.version} - eclipse-temurin:11-jre - -java-11 @@ -587,66 +583,6 @@ - - org.codehaus.mojo - exec-maven-plugin - 3.1.0 - - - docker-build - package - - exec - - - ./docker/build-and-push-image.sh - ${project.basedir} - - ${project.version} - ${docker.baseimage} - ${packname.standard} - no-push - ${docker.tag-suffix} - - - - - docker-test - integration-test - - exec - - - ${skipTests} - ./docker/test-image.sh - ${project.basedir} - - docker.io/janusgraph/janusgraph:${project.version}${docker.tag-suffix} - - - - - docker-deploy - deploy - - exec - - - ./docker/build-and-push-image.sh - ${project.basedir} - - ${project.version} - ${docker.baseimage} - ${packname.standard} - push - ${docker.tag-suffix} - - - - - - -