Skip to content
Snippets Groups Projects
Verified Commit 28e40544 authored by Joe Donofry's avatar Joe Donofry
Browse files

Use cp vs CopyFiles task due to macOS errors

parent 8bd63ba2
No related branches found
No related tags found
No related merge requests found
......@@ -15,16 +15,18 @@ steps:
./.ci/script.sh
sed -i -e "s/VERSION_NAME_VALUE/${VERSION}/g" ./.ci/bintray-release.json || true
cp ./.ci/bintray-release.json .
- task: CopyFiles@2
inputs:
sourceFolder: $(Build.Repository.LocalPath) # Optional
contents: |
'**/nheko*.dmg'
'**/nheko*.AppImage'
targetFolder: $(Build.ArtifactStagingDirectory)
#cleanTargetFolder: false # Optional
overWrite: true # Optional
flattenFolders: true # Optional
env:
ARTIFACT_STAGING_DIRECTORY: $(Build.ArtifactStagingDirectory))
# - task: CopyFiles@2
# inputs:
# sourceFolder: $(Build.Repository.LocalPath) # Optional
# contents: |
# '**/nheko*.dmg'
# '**/nheko*.AppImage'
# targetFolder: $(Build.ArtifactStagingDirectory)
# #cleanTargetFolder: false # Optional
# overWrite: true # Optional
# flattenFolders: true # Optional
# Create a variable for build success
- bash: ls ${ARTIFACT_STAGING_DIRECTORY}
env:
......
......@@ -54,3 +54,7 @@ if [ -n "$VERSION" ]; then
#mv nheko-*x86_64.AppImage nheko-${VERSION}-x86_64.AppImage
echo "nheko-${VERSION}-x86_64.AppImage"
fi
if [ -n "$ARTIFACT_STAGING_DIRECTORY" ]; then
cp "nheko-${VERSION}-x86_64.AppImage" "${ARTIFACT_STAGING_DIRECTORY}"
fi
\ No newline at end of file
......@@ -28,3 +28,7 @@ dmgbuild -s ./.ci/macos/settings.json "Nheko" nheko.dmg
if [ -n "$VERSION" ]; then
mv nheko.dmg "nheko-${VERSION}.dmg"
fi
if [ -n "$ARTIFACT_STAGING_DIRECTORY" ]; then
cp "nheko-${VERSION}.dmg" "${ARTIFACT_STAGING_DIRECTORY}"
fi
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment