From 9ab4f37f5927b5e0c13f4908acedfbd9a4f1bc01 Mon Sep 17 00:00:00 2001 From: Pascal Hartig Date: Thu, 28 May 2020 09:56:15 -0700 Subject: [PATCH] DMG upload experiments (#1199) Summary: Following some advice to add debugging steps from here: https://github.com/skx/github-action-publish-binaries/issues/19 Also adding an alternative upload action as the issue clearly stems from something specific to the cURL version on the Action host. This uses a completely different tool (ghr) for uploading. Pull Request resolved: https://github.com/facebook/flipper/pull/1199 Test Plan: testinprod Reviewed By: jknoxville Differential Revision: D21723887 Pulled By: passy fbshipit-source-id: cbbc9555283a89e3152c602b87d64976e8dbf4f9 --- .github/workflows/dmg-release.yml | 20 +++++++++++++++++++- 1 file changed, 19 insertions(+), 1 deletion(-) diff --git a/.github/workflows/dmg-release.yml b/.github/workflows/dmg-release.yml index a9cdd5851..5dca6641d 100644 --- a/.github/workflows/dmg-release.yml +++ b/.github/workflows/dmg-release.yml @@ -37,10 +37,28 @@ jobs: with: name: 'Flipper-mac.dmg' path: 'Flipper-mac.dmg' + - run: dd if=/dev/zero bs=1024k count=1024 of=1g.dmg + - run: dd if=/dev/zero bs=1024k count=10240 of=10g.dmg - run: ls -la Flipper-mac.dmg - name: Publish uses: skx/github-action-publish-binaries@master env: GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} with: - args: 'Flipper-mac.dmg' + args: '*.dmg' + publish: + runs-on: ubuntu-latest + needs: build + + steps: + - name: Download + uses: actions/download-artifact@v1 + with: + name: 'Flipper-mac.dmg' + path: 'Flipper-mac.dmg' + - name: GitHub Upload Release Artifacts + uses: Roang-zero1/github-upload-release-artifacts-action@v2.1.0 + env: + GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} + with: + args: '*.dmg'