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 <dirk@hohndel.org>
This commit is contained in:
Dirk Hohndel 2019-11-18 09:14:09 -08:00
parent c2d5de207d
commit e9a9bc1282

View file

@ -82,12 +82,11 @@ jobs:
ln -s ${GRANTLEE_VERSION}/$(basename $i) . ln -s ${GRANTLEE_VERSION}/$(basename $i) .
popd popd
done done
zip Subsurface.app.zip Subsurface.app
- name: store artifact - name: store artifact
uses: actions/upload-artifact@master uses: actions/upload-artifact@master
with: with:
name: Subsurface.app.zip name: Subsurface.app
path: build/Subsurface.app.zip path: build/Subsurface.app
publishRelease: publishRelease:
needs: desktopBuild needs: desktopBuild
@ -100,7 +99,10 @@ jobs:
- name: retrieve artifact - name: retrieve artifact
uses: actions/download-artifact@master uses: actions/download-artifact@master
with: with:
name: Subsurface.app.zip name: Subsurface.app
- name: create zip file
run: |
zip -r Subsurface.app.zip Subsurface.app
- name: create CI release - name: create CI release
if: github.event_name == 'push' if: github.event_name == 'push'
uses: ./.github/actions/release uses: ./.github/actions/release
@ -110,16 +112,3 @@ jobs:
REF: ${{ github.ref }} REF: ${{ github.ref }}
COMMIT: ${{ github.sha }} COMMIT: ${{ github.sha }}
BIN1: Subsurface.app.zip 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