diff --git a/build/azure-pipelines.yml b/build/azure-pipelines.yml index 45009f2..7ee8524 100644 --- a/build/azure-pipelines.yml +++ b/build/azure-pipelines.yml @@ -24,6 +24,8 @@ jobs: copy C:\Users\%USERNAME%\.nuget\packages\tdlib.native\1.3.0\runtimes\win-x64\native\zlib1.dll $(Build.SourcesDirectory)\src\Tel.Egram\bin\$(buildConfiguration)\netcoreapp2.1\win-x64\publish displayName: 'copy native dependencies' workingDirectory: $(Build.SourcesDirectory)\src\Tel.Egram + - powershell: | + Compress-Archive -Path $(Build.SourcesDirectory)\src\Tel.Egram\bin\$(buildConfiguration)\netcoreapp2.1\win-x64\publish -DestinationPath $(Build.ArtifactStagingDirectory)\egram.zip - powershell: | Invoke-WebRequest -Uri https://github.com/egramtel/nsis/raw/master/nsis.zip -OutFile $(Build.SourcesDirectory)\build\nsis\nsis.zip Expand-Archive -Path $(Build.SourcesDirectory)\build\nsis\nsis.zip -DestinationPath $(Build.SourcesDirectory)/build/nsis diff --git a/build/github/release.sh b/build/github/release.sh index 200b75b..4560d4e 100644 --- a/build/github/release.sh +++ b/build/github/release.sh @@ -37,5 +37,10 @@ echo $f GITHUB_ASSET="https://uploads.github.com/repos/$GITHUB_OWNER/egram.tel/releases/$release_id/assets?name=$(basename "$f")&access_token=$GITHUB_ACCESS_TOKEN" curl --data-binary @"$f" -H "Content-Type: application/octet-stream" "$GITHUB_ASSET" +f="$SYSTEM_ARTIFACTSDIRECTORY/_egram/installer/egram.zip" +echo $f +GITHUB_ASSET="https://uploads.github.com/repos/$GITHUB_OWNER/egram.tel/releases/$release_id/assets?name=$(basename "$f")&access_token=$GITHUB_ACCESS_TOKEN" +curl --data-binary @"$f" -H "Content-Type: application/octet-stream" "$GITHUB_ASSET" + echo "Success!" exit 0