Skip to content

Commit

Permalink
update build-latest.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
yajuhua committed May 26, 2024
1 parent d555864 commit 7441db7
Showing 1 changed file with 22 additions and 21 deletions.
43 changes: 22 additions & 21 deletions .github/workflows/build-latest.yml
Original file line number Diff line number Diff line change
Expand Up @@ -258,6 +258,14 @@ jobs:
runs-on: ubuntu-latest
needs: [ build-arm64,build-amd64,build-arm32v7]
steps:
# 设置 QEMU, 后面 docker buildx 依赖此.
- name: Set up QEMU
uses: docker/setup-qemu-action@v1

# 设置 Docker buildx, 方便构建 Multi platform 镜像
- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v1

- name: Set up JDK 8
uses: actions/setup-java@v3
with:
Expand All @@ -269,15 +277,8 @@ jobs:
id: get_version
run: |
VERSION=$(mvn help:evaluate -Dexpression=project.version -q -DforceStdout)
echo "RELEASE_VERSION=$VERSION" >> $GITHUB_ENV
echo "RELEASE_VERSION=$VERSION" >> $GITHUB_ENV
# 设置 QEMU, 后面 docker buildx 依赖此.
- name: Set up QEMU
uses: docker/setup-qemu-action@v1

# 设置 Docker buildx, 方便构建 Multi platform 镜像
- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v1
- name: pull amd4 and arm64 docker images
run: |
docker pull yajuhua/podcast2:${{ env.RELEASE_VERSION }}-arm64
Expand Down Expand Up @@ -309,19 +310,6 @@ jobs:
runs-on: ubuntu-latest
needs: build-jar
steps:
- name: Set up JDK 8
uses: actions/setup-java@v3
with:
java-version: '8'
distribution: 'temurin'
cache: maven

- name: Get Maven Project Version
id: get_version
run: |
VERSION=$(mvn help:evaluate -Dexpression=project.version -q -DforceStdout)
echo "RELEASE_VERSION=$VERSION" >> $GITHUB_ENV
- uses: actions/checkout@v3

- name: Create tmp directory
Expand Down Expand Up @@ -349,6 +337,19 @@ jobs:
cp -rf BOOT-INF/classes BOOT-INF/lib platform/osx/
zip -r podcast2-osx-x64.zip platform/osx/
- name: Set up JDK 8
uses: actions/setup-java@v3
with:
java-version: '8'
distribution: 'temurin'
cache: maven

- name: Get Maven Project Version
id: get_version
run: |
VERSION=$(mvn help:evaluate -Dexpression=project.version -q -DforceStdout)
echo "RELEASE_VERSION=$VERSION" >> $GITHUB_ENV
# 上传文件并发布 Release
- uses: "marvinpinto/action-automatic-releases@latest"
with:
Expand Down

0 comments on commit 7441db7

Please sign in to comment.