mirror of
https://github.com/subsurface/subsurface.git
synced 2024-11-30 22:20:21 +00:00
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:
parent
c2d5de207d
commit
e9a9bc1282
1 changed files with 6 additions and 17 deletions
23
.github/workflows/mac.yml
vendored
23
.github/workflows/mac.yml
vendored
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue