Skip to content

Commit

Permalink
Update jvm-release.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
Ghost-chu authored Aug 17, 2024
1 parent 2059096 commit dd7f617
Showing 1 changed file with 12 additions and 15 deletions.
27 changes: 12 additions & 15 deletions .github/workflows/jvm-release.yml
Original file line number Diff line number Diff line change
@@ -1,11 +1,18 @@
# 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:
workflow_dispatch:
release:
types:
- published

jobs:
build:
permissions:
Expand All @@ -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:
Expand All @@ -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
Expand All @@ -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
Expand All @@ -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:
Expand All @@ -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
Expand Down

0 comments on commit dd7f617

Please sign in to comment.