From 8f660c97f44147cc39b0ebe44eac374213c1a32c Mon Sep 17 00:00:00 2001 From: jared Date: Mon, 25 Jan 2021 13:46:00 +0800 Subject: [PATCH] update actions --- .github/workflows/android-qt5_15_2.yml | 2 +- .github/workflows/android.yml | 2 +- .github/workflows/macos-11_0.yml | 37 ++++++++++++++------------ 3 files changed, 22 insertions(+), 19 deletions(-) diff --git a/.github/workflows/android-qt5_15_2.yml b/.github/workflows/android-qt5_15_2.yml index a6edf1d..f53a656 100644 --- a/.github/workflows/android-qt5_15_2.yml +++ b/.github/workflows/android-qt5_15_2.yml @@ -31,7 +31,7 @@ jobs: qt_target: [android] steps: - - name: Install Qt 5.15.2 + - name: Install Qt uses: jurplel/install-qt-action@v2.10.0 with: # Version of Qt to install diff --git a/.github/workflows/android.yml b/.github/workflows/android.yml index a893b22..7681306 100644 --- a/.github/workflows/android.yml +++ b/.github/workflows/android.yml @@ -31,7 +31,7 @@ jobs: qt_target: [android] qt_arch: [android_x86,android_armv7,android_arm64_v8a] steps: - - name: Install Qt 5.12.10 + - name: Install Qt uses: jurplel/install-qt-action@v2.10.0 with: # Version of Qt to install diff --git a/.github/workflows/macos-11_0.yml b/.github/workflows/macos-11_0.yml index a0b4638..79c6f02 100644 --- a/.github/workflows/macos-11_0.yml +++ b/.github/workflows/macos-11_0.yml @@ -48,20 +48,23 @@ jobs: run: | qmake make - # tag 打包 - # - name: package - # if: startsWith(github.event.ref, 'refs/tags/') - # run: | - # # 拷贝依赖 - # macdeployqt bin/release/${targetName}.app -qmldir=. -verbose=1 -dmg - - # # tag 上传Release - # - name: uploadRelease - # if: startsWith(github.event.ref, 'refs/tags/') - # uses: svenstaro/upload-release-action@v2 - # with: - # repo_token: ${{ secrets.GITHUB_TOKEN }} - # file: bin/release/${{ env.targetName }}.dmg - # asset_name: ${{ env.targetName }}-${{ matrix.os }}-${{ matrix.qt_ver }}.dmg - # tag: ${{ github.ref }} - # overwrite: true + # 打包 + - name: package + run: | + # 拷贝依赖 + macdeployqt bin/release/${targetName}.app -qmldir=. -verbose=1 -dmg + # 上传artifacts + - uses: actions/upload-artifact@v2 + with: + name: ${targetName}_${{matrix.qt_ver}}.zip + path: bin/release/${targetName}.app + # tag 上传Release + - name: uploadRelease + if: startsWith(github.event.ref, 'refs/tags/') + uses: svenstaro/upload-release-action@v2 + with: + repo_token: ${{ secrets.GITHUB_TOKEN }} + file: bin/release/${{ env.targetName }}.dmg + asset_name: ${{ env.targetName }}_${{ matrix.os }}_${{ matrix.qt_ver }}.dmg + tag: ${{ github.ref }} + overwrite: true