From 4639472d5682eb6e2ae639497443cff29ba233a6 Mon Sep 17 00:00:00 2001 From: Neil Date: Sat, 27 May 2023 09:29:36 +0800 Subject: [PATCH] fix (#631) --- .github/workflows/release.yml | 17 ++++++----------- 1 file changed, 6 insertions(+), 11 deletions(-) diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 54d4479..ef31fa5 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -144,16 +144,11 @@ jobs: aws cloudfront create-invalidation \ --distribution-id ${{ secrets.AWS_CF_GUI_RELEASE_ID }} \ --paths '/*' - - name: Upload ARM64 DMG files to release - uses: actions/github-release@v1 + - name: upload builds + uses: softprops/action-gh-release@v1 + if: startsWith(github.ref, 'refs/tags/') with: - args: upload-release-asset --owner ${{ github.repository_owner }} --repo ${{ github.repository }} --tag ${{ github.ref }} --name ${{ steps.app_files.outputs.dmg_arm64 }} --file dist/${{ steps.app_files.outputs.dmg_arm64 }} - env: - GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} - - name: Upload X86 DMG files to release - uses: actions/github-release@v1 - with: - args: upload-release-asset --owner ${{ github.repository_owner }} --repo ${{ github.repository }} --tag ${{ github.ref }} --name ${{ steps.app_files.outputs.dmg_x86 }} --file dist/${{ steps.app_files.outputs.dmg_x86 }} - env: - GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} + files: | + dist/${{ steps.app_files.outputs.dmg_arm64 }} + dist/${{ steps.app_files.outputs.dmg_x86 }}