diff --git a/.ci/azure-build.yml b/.ci/azure-build.yml index 5c34aeae..91b21d47 100644 --- a/.ci/azure-build.yml +++ b/.ci/azure-build.yml @@ -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: diff --git a/.ci/linux/deploy.sh b/.ci/linux/deploy.sh index e080c283..816c34b0 100755 --- a/.ci/linux/deploy.sh +++ b/.ci/linux/deploy.sh @@ -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 diff --git a/.ci/macos/deploy.sh b/.ci/macos/deploy.sh index bb82d294..2bc6e320 100755 --- a/.ci/macos/deploy.sh +++ b/.ci/macos/deploy.sh @@ -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