From d2f790336b94f35d5b10b3f5a2d76997a9184206 Mon Sep 17 00:00:00 2001 From: canxin121 Date: Sat, 28 Sep 2024 18:54:10 +0800 Subject: [PATCH] [Fix] fix build_windows_packages.yml --- .github/workflows/build_windows_packages.yml | 13 +++++++------ 1 file changed, 7 insertions(+), 6 deletions(-) diff --git a/.github/workflows/build_windows_packages.yml b/.github/workflows/build_windows_packages.yml index bae7906..78a1753 100644 --- a/.github/workflows/build_windows_packages.yml +++ b/.github/workflows/build_windows_packages.yml @@ -19,6 +19,7 @@ jobs: sudo snap install yq app_version=$(yq eval '.version' pubspec.yaml) echo "::set-output name=app_version::$app_version" + build_and_push: name: Build and Push Windows Packages needs: get_version @@ -59,19 +60,19 @@ jobs: - name: Rename Packages run: | - mv ./dist/${{ steps.vars.outputs.app_version }}/*.msix ./dist/${{ steps.vars.outputs.app_version }}/AppRhyme_windows_${{ steps.vars.outputs.app_version }}_x86-64.msix - mv ./dist/${{ steps.vars.outputs.app_version }}/*.exe ./dist/${{ steps.vars.outputs.app_version }}/AppRhyme_windows_${{ steps.vars.outputs.app_version }}_x86-64.exe + mv ./dist/${{ needs.get_version.outputs.app_version }}/*.msix ./dist/${{ needs.get_version.outputs.app_version }}/AppRhyme_windows_${{ needs.get_version.outputs.app_version }}_x86-64.msix + mv ./dist/${{ needs.get_version.outputs.app_version }}/*.exe ./dist/${{ needs.get_version.outputs.app_version }}/AppRhyme_windows_${{ needs.get_version.outputs.app_version }}_x86-64.exe - name: Upload msix Package uses: actions/upload-artifact@v4 with: - name: AppRhyme_windows_${{ steps.vars.outputs.app_version }}_x86-64_msix - path: dist/${{ steps.vars.outputs.app_version }}/AppRhyme_windows_${{ steps.vars.outputs.app_version }}_x86-64.msix + name: AppRhyme_windows_${{ needs.get_version.outputs.app_version }}_x86-64_msix + path: dist/${{ needs.get_version.outputs.app_version }}/AppRhyme_windows_${{ needs.get_version.outputs.app_version }}_x86-64.msix compression-level: 9 - name: Upload exe Package uses: actions/upload-artifact@v4 with: - name: AppRhyme_windows_${{ steps.vars.outputs.app_version }}_x86-64_exe - path: dist/${{ steps.vars.outputs.app_version }}/AppRhyme_windows_${{ steps.vars.outputs.app_version }}_x86-64.exe + name: AppRhyme_windows_${{ needs.get_version.outputs.app_version }}_x86-64_exe + path: dist/${{ needs.get_version.outputs.app_version }}/AppRhyme_windows_${{ needs.get_version.outputs.app_version }}_x86-64.exe compression-level: 9 \ No newline at end of file