diff --git a/.github/workflows/jvm-release.yml b/.github/workflows/jvm-release.yml index 8906588461..8c919f114d 100644 --- a/.github/workflows/jvm-release.yml +++ b/.github/workflows/jvm-release.yml @@ -1,3 +1,11 @@ +# This workflow will build a Java project with Maven, and cache/restore any dependencies to improve the workflow execution time +# For more information see: https://docs.github.com/en/actions/automating-builds-and-tests/building-and-testing-java-with-maven + +# This workflow uses actions that are not certified by GitHub. +# They are provided by a third-party and are governed by +# separate terms of service, privacy policy, and support +# documentation. + name: Java Release on: @@ -5,7 +13,6 @@ on: release: types: - published - jobs: build: permissions: @@ -23,13 +30,12 @@ jobs: - name: Get WebUI Files env: GH_TOKEN: ${{ secrets.GITHUB_TOKEN }} - run: cd src/main/resources && git clone --depth 1 --branch gh-pages "https://github.com/PBH-BTN/pbh-fe.git" static && cd ../../.. + run: cd src/main/resources && git clone --depth 1 --branch gh-pages "https://github.com/PBH-BTN/pbh-fe.git" static&& cd ../../.. - uses: actions/setup-java@v4 with: distribution: 'temurin' java-version: '21' cache: 'maven' - cache-dependency-path: '**/pom.xml' - uses: luangong/setup-install4j@v1 name: Setup Install4j with: @@ -52,11 +58,6 @@ jobs: with: asset_paths: '["target/PeerBanHelper.jar", "target/media/PeerBanHelper_*"]' id: project - - docker: - needs: build - runs-on: ubuntu-latest - steps: - name: Set Up QEMU uses: docker/setup-qemu-action@v3 - name: Set Up Buildx @@ -81,7 +82,7 @@ jobs: type=raw,latest type=sha - name: Build and push Docker image - uses: docker/build-push-action@v6.7.0 + uses: docker/build-push-action@v6.6.1 with: context: . file: ./Dockerfile @@ -91,11 +92,7 @@ jobs: linux/arm64/v8 tags: ${{ steps.meta.outputs.tags }} labels: ${{ steps.meta.outputs.labels }}-jvm-universal - - aliyun: - needs: build - runs-on: ubuntu-latest - steps: + # ---------------- ALIYUN ACR -------------------- - name: Log in to Aliyun ACR uses: docker/login-action@v3 with: @@ -117,7 +114,7 @@ jobs: type=raw,latest type=sha - name: Build and push Aliyun ACR - uses: docker/build-push-action@v6.7.0 + uses: docker/build-push-action@v6.6.1 with: context: . file: ./Dockerfile