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

Commit 6578767

Browse files
committed
Add zip as build target in pipelines
1 parent 354b0fb commit 6578767

File tree

2 files changed

+7
-0
lines changed

2 files changed

+7
-0
lines changed

build/azure-pipelines.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,8 @@ jobs:
2424
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
2525
displayName: 'copy native dependencies'
2626
workingDirectory: $(Build.SourcesDirectory)\src\Tel.Egram
27+
- powershell: |
28+
Compress-Archive -Path $(Build.SourcesDirectory)\src\Tel.Egram\bin\$(buildConfiguration)\netcoreapp2.1\win-x64\publish -DestinationPath $(Build.ArtifactStagingDirectory)\egram.zip
2729
- powershell: |
2830
Invoke-WebRequest -Uri https://github.com/egramtel/nsis/raw/master/nsis.zip -OutFile $(Build.SourcesDirectory)\build\nsis\nsis.zip
2931
Expand-Archive -Path $(Build.SourcesDirectory)\build\nsis\nsis.zip -DestinationPath $(Build.SourcesDirectory)/build/nsis

build/github/release.sh

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -37,5 +37,10 @@ echo $f
3737
GITHUB_ASSET="https://uploads.github.com/repos/$GITHUB_OWNER/egram.tel/releases/$release_id/assets?name=$(basename "$f")&access_token=$GITHUB_ACCESS_TOKEN"
3838
curl --data-binary @"$f" -H "Content-Type: application/octet-stream" "$GITHUB_ASSET"
3939

40+
f="$SYSTEM_ARTIFACTSDIRECTORY/_egram/installer/egram.zip"
41+
echo $f
42+
GITHUB_ASSET="https://uploads.github.com/repos/$GITHUB_OWNER/egram.tel/releases/$release_id/assets?name=$(basename "$f")&access_token=$GITHUB_ACCESS_TOKEN"
43+
curl --data-binary @"$f" -H "Content-Type: application/octet-stream" "$GITHUB_ASSET"
44+
4045
echo "Success!"
4146
exit 0

0 commit comments

Comments
 (0)