Skip to content
This repository has been archived by the owner on Apr 15, 2021. It is now read-only.

Commit

Permalink
Add zip as build target in pipelines
Browse files Browse the repository at this point in the history
  • Loading branch information
x2bool committed Jan 6, 2019
1 parent 354b0fb commit 6578767
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 0 deletions.
2 changes: 2 additions & 0 deletions build/azure-pipelines.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
5 changes: 5 additions & 0 deletions build/github/release.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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

0 comments on commit 6578767

Please sign in to comment.