From 5d936f5f548e546d04dfa18f40d6540c3c7e00ef Mon Sep 17 00:00:00 2001 From: FrancescoBorzi Date: Wed, 13 Nov 2024 22:39:23 +0100 Subject: [PATCH] chore: update release job --- .github/workflows/release.yml | 22 ++++++++++------------ 1 file changed, 10 insertions(+), 12 deletions(-) diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index dfaa36e192..38c7843383 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -77,23 +77,20 @@ jobs: steps: - name: Checkout code uses: actions/checkout@v4 + - name: Build project env: GH_TOKEN: ${{ secrets.GITHUB_TOKEN }} run: | npm install npm run electron:mac - mv "release/${{needs.get-package-version.outputs.app_name}}-${{needs.get-package-version.outputs.version}}.dmg" ${{needs.get-package-version.outputs.fix_app_name}}-${{needs.get-package-version.outputs.version}}-x64.MAC.dmg - zip ${{needs.get-package-version.outputs.fix_app_name}}-${{needs.get-package-version.outputs.version}}.MAC-x64.dmg.zip ${{needs.get-package-version.outputs.fix_app_name}}-${{needs.get-package-version.outputs.version}}-x64.MAC.dmg - mv "release/${{needs.get-package-version.outputs.app_name}}-${{needs.get-package-version.outputs.version}}-arm64.dmg" ${{needs.get-package-version.outputs.fix_app_name}}-${{needs.get-package-version.outputs.version}}-arm64.MAC.dmg - zip ${{needs.get-package-version.outputs.fix_app_name}}-${{needs.get-package-version.outputs.version}}-arm64.MAC.dmg.zip ${{needs.get-package-version.outputs.fix_app_name}}-${{needs.get-package-version.outputs.version}}-arm64.MAC.dmg + mv "release/${{needs.get-package-version.outputs.app_name}}-${{needs.get-package-version.outputs.version}}.dmg" "${{needs.get-package-version.outputs.fix_app_name}}-${{needs.get-package-version.outputs.version}}-x64.MAC.dmg" + zip "${{needs.get-package-version.outputs.fix_app_name}}-${{needs.get-package-version.outputs.version}}-x64.MAC.dmg.zip" "${{needs.get-package-version.outputs.fix_app_name}}-${{needs.get-package-version.outputs.version}}-x64.MAC.dmg" + mv "release/${{needs.get-package-version.outputs.app_name}}-${{needs.get-package-version.outputs.version}}-arm64.dmg" "${{needs.get-package-version.outputs.fix_app_name}}-${{needs.get-package-version.outputs.version}}-arm64.MAC.dmg" + zip "${{needs.get-package-version.outputs.fix_app_name}}-${{needs.get-package-version.outputs.version}}-arm64.MAC.dmg.zip" "${{needs.get-package-version.outputs.fix_app_name}}-${{needs.get-package-version.outputs.version}}-arm64.MAC.dmg" rm -rf release - rm -rf *.yml - rm -rf *.blockmap - rm -rf *.dmg - rm -rf release/*.yml - rm -rf release/*.blockmap - rm -rf release/*.dmg + rm -f *.yml *.blockmap *.dmg + - name: Create Release id: create_release uses: softprops/action-gh-release@v2 @@ -105,8 +102,9 @@ jobs: draft: true prerelease: false files: | - ${{needs.get-package-version.outputs.fix_app_name}}-${{needs.get-package-version.outputs.version}}.MAC-x64.dmg.zip - ${{needs.get-package-version.outputs.fix_app_name}}-${{needs.get-package-version.outputs.version}}.MAC-arm64.dmg.zip + ${{needs.get-package-version.outputs.fix_app_name}}-${{needs.get-package-version.outputs.version}}-x64.MAC.dmg.zip + ${{needs.get-package-version.outputs.fix_app_name}}-${{needs.get-package-version.outputs.version}}-arm64.MAC.dmg.zip + build-on-windows: needs: get-package-version