Fix GitHub release asset upload (#2114) (#2115)

ghr only looks at immediate descendents of the path it is provided, so
we need to ensure that ghr-dist/ is flattened.

(cherry picked from commit 9aca802258)

Co-authored-by: Eli Young <elyscape@gmail.com>
This commit is contained in:
Mattermost Build 2022-05-18 20:34:45 +02:00 committed by GitHub
parent 9cea6c27f2
commit 71899e2a16
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -494,7 +494,7 @@ jobs:
name: "Setup files for ghr"
command: |
mkdir -p ./ghr-dist
cp -r --backup=numbered ./build/{macos-release,win-release,linux}/* ./ghr-dist
find ./build/{macos-release,win-release,linux} -type f -exec cp --backup=numbered -t ./ghr-dist {} +
- run:
name: "Publish Release on GitHub"
command: |