From 485434ec0d86676eb1821f32b531da03c3fd686e Mon Sep 17 00:00:00 2001 From: Neil Date: Fri, 26 May 2023 22:19:12 +0800 Subject: [PATCH] #496 upload dmg installers to github release (#626) --- .github/workflows/release.yml | 15 ++++++++++++++- 1 file changed, 14 insertions(+), 1 deletion(-) diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 780cbba..54d4479 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -143,4 +143,17 @@ jobs: - run: | aws cloudfront create-invalidation \ --distribution-id ${{ secrets.AWS_CF_GUI_RELEASE_ID }} \ - --paths '/*' \ No newline at end of file + --paths '/*' + - name: Upload ARM64 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_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 }} +