From e9a9bc128247f95b0881dcafa098e7d5900302ce Mon Sep 17 00:00:00 2001 From: Dirk Hohndel Date: Mon, 18 Nov 2019 09:14:09 -0800 Subject: GitHub actions: fix macOS artifact upload Previously this created a bogus Subsurface.app.zip.zip file and then failed to upload it to the release. The upload / download pair of default actions is happier with just the folder. And then the creation of the zip file needs the '-r' switch. Oops. Finally, the pull-request specific uploads as build artifact are completely redundant since we already do this to move the data from the macOS build to the container that runs our own publish action in the first place. Signed-off-by: Dirk Hohndel --- .github/workflows/mac.yml | 23 ++++++----------------- 1 file changed, 6 insertions(+), 17 deletions(-) (limited to '.github') diff --git a/.github/workflows/mac.yml b/.github/workflows/mac.yml index 515c7e37f..11548442b 100644 --- a/.github/workflows/mac.yml +++ b/.github/workflows/mac.yml @@ -82,12 +82,11 @@ jobs: ln -s ${GRANTLEE_VERSION}/$(basename $i) . popd done - zip Subsurface.app.zip Subsurface.app - name: store artifact uses: actions/upload-artifact@master with: - name: Subsurface.app.zip - path: build/Subsurface.app.zip + name: Subsurface.app + path: build/Subsurface.app publishRelease: needs: desktopBuild @@ -100,7 +99,10 @@ jobs: - name: retrieve artifact uses: actions/download-artifact@master with: - name: Subsurface.app.zip + name: Subsurface.app + - name: create zip file + run: | + zip -r Subsurface.app.zip Subsurface.app - name: create CI release if: github.event_name == 'push' uses: ./.github/actions/release @@ -110,16 +112,3 @@ jobs: REF: ${{ github.ref }} COMMIT: ${{ github.sha }} BIN1: Subsurface.app.zip - - - name: prepare PR artifacts - if: github.event_name == 'pull_request' - run: | - mkdir -p Mac-artifacts - mv Subsurface.app.zip Mac-artifacts - - - name: PR artifacts - if: github.event_name == 'pull_request' - uses: actions/upload-artifact@master - with: - name: Mac-artifacts - path: Mac-artifacts -- cgit v1.2.3-70-g09d2