diff --git a/.github/workflows/maven.yml b/.github/workflows/maven.yml index 0315506..24f7c69 100644 --- a/.github/workflows/maven.yml +++ b/.github/workflows/maven.yml @@ -3,7 +3,7 @@ name: Java CI on: [push] jobs: - build-latest-snapshots: + build and deploy: runs-on: ubuntu-latest steps: - uses: actions/checkout@v4 @@ -18,18 +18,5 @@ jobs: key: ${{ runner.os }}-maven-${{ hashFiles('**/pom.xml') }} restore-keys: | ${{ runner.os }}-maven- - - name: Build with Maven - run: mvn -P jitpack-latest -B package -DskipTests=true --file pom.xml - - build-stable: - if: contains(github.ref, 'master') || (contains(github.ref, 'release') ) || (contains(github.ref, 'support') ) - runs-on: ubuntu-latest - steps: - - uses: actions/checkout@v4 - - name: Set up JDK 11 - uses: actions/setup-java@v3 - with: - java-version: 11 - distribution: temurin - name: Build with Maven run: mvn -B package -DskipTests=true --file pom.xml