From 689e0805e73cb6d04d756276fdc8f01d6b67b236 Mon Sep 17 00:00:00 2001 From: JessGuo Date: Mon, 3 Apr 2023 14:22:01 +0800 Subject: [PATCH] add tag name into update workflow release assets before: example_ubuntu-20.04_6.4.3.AppImage after: example_v1.1.8_ubuntu-20.04_Qt6.4.3.AppImage --- .github/workflows/macos.yml | 2 +- .github/workflows/ubuntu.yml | 2 +- .github/workflows/windows.yml | 5 +++-- 3 files changed, 5 insertions(+), 4 deletions(-) diff --git a/.github/workflows/macos.yml b/.github/workflows/macos.yml index 081ebbb..5774179 100644 --- a/.github/workflows/macos.yml +++ b/.github/workflows/macos.yml @@ -59,6 +59,6 @@ jobs: with: repo_token: ${{ secrets.GITHUB_TOKEN }} file: bin/release/${{ env.targetName }}.dmg - asset_name: ${{ env.targetName }}_${{ matrix.os }}_${{ matrix.qt_ver }}.dmg + asset_name: ${{ env.targetName }}_${{ github.ref_name }}_${{ matrix.os }}_Qt${{ matrix.qt_ver }}.dmg tag: ${{ github.ref }} overwrite: true \ No newline at end of file diff --git a/.github/workflows/ubuntu.yml b/.github/workflows/ubuntu.yml index 8d38569..6e2047e 100644 --- a/.github/workflows/ubuntu.yml +++ b/.github/workflows/ubuntu.yml @@ -72,6 +72,6 @@ jobs: with: repo_token: ${{ secrets.GITHUB_TOKEN }} file: ${{ env.targetName }}.AppImage - asset_name: ${{ env.targetName }}_${{ matrix.os }}_${{ matrix.qt_ver }}.AppImage + asset_name: ${{ env.targetName }}_${{ github.ref_name }}_${{ matrix.os }}_Qt${{ matrix.qt_ver }}.AppImage tag: ${{ github.ref }} overwrite: true \ No newline at end of file diff --git a/.github/workflows/windows.yml b/.github/workflows/windows.yml index 0dfa2c8..ce0c582 100644 --- a/.github/workflows/windows.yml +++ b/.github/workflows/windows.yml @@ -16,10 +16,11 @@ jobs: name: Build # 运行平台, windows-latest目前是windows server 2019 # 参考文档 https://github.com/actions/virtual-environments/blob/main/images/win/Windows2019-Readme.md - runs-on: windows-2019 + runs-on: ${{ matrix.os }} strategy: # 矩阵配置 matrix: + os: [windows-2019] include: - qt_ver: 6.4.3 qt_arch: win64_msvc2019_64 @@ -86,6 +87,6 @@ jobs: with: repo_token: ${{ secrets.GITHUB_TOKEN }} file: ${{ steps.package.outputs.packageName }}.zip - asset_name: ${{ steps.package.outputs.packageName }}.zip + asset_name: ${{ env.fileName }}_${{ github.ref_name }}_${{ matrix.os }}_Qt${{ matrix.qt_ver }}.zip tag: ${{ github.ref }} overwrite: true \ No newline at end of file