mirror of
https://github.com/VSCodium/vscodium.git
synced 2024-11-24 00:42:09 +03:00
Compute and upload sha256 sums for build artifacts
This commit is contained in:
parent
6a307fcc6d
commit
33bc3b2f8b
@ -27,6 +27,7 @@ script:
|
|||||||
|
|
||||||
before_deploy:
|
before_deploy:
|
||||||
- ./create_zip.sh
|
- ./create_zip.sh
|
||||||
|
- ./sum.sh
|
||||||
|
|
||||||
deploy:
|
deploy:
|
||||||
provider: releases
|
provider: releases
|
||||||
@ -36,6 +37,7 @@ deploy:
|
|||||||
api_key: $GITHUB_TOKEN
|
api_key: $GITHUB_TOKEN
|
||||||
file_glob: true
|
file_glob: true
|
||||||
file:
|
file:
|
||||||
|
- ./*.sha256
|
||||||
- ./*.zip
|
- ./*.zip
|
||||||
- ./*.tar.gz
|
- ./*.tar.gz
|
||||||
- vscode/.build/linux/deb/i386/deb/*.deb
|
- vscode/.build/linux/deb/i386/deb/*.deb
|
||||||
|
28
sum.sh
Executable file
28
sum.sh
Executable file
@ -0,0 +1,28 @@
|
|||||||
|
#!/bin/bash
|
||||||
|
|
||||||
|
sum_file () {
|
||||||
|
if [[ -f "$1" ]]; then
|
||||||
|
shasum -a 256 $1 > $1.sha256
|
||||||
|
fi
|
||||||
|
}
|
||||||
|
|
||||||
|
if [[ "$SHOULD_BUILD" == "yes" ]]; then
|
||||||
|
if [[ "$TRAVIS_OS_NAME" == "osx" ]]; then
|
||||||
|
sum_file VSCodium-darwin-*.zip
|
||||||
|
elif [[ "$CI_WINDOWS" == "True" ]]; then
|
||||||
|
sum_file VSCodium-win32*.zip
|
||||||
|
sum_file VSCodiumSetup*.exe
|
||||||
|
sum_file VSCodiumUserSetup*.exe
|
||||||
|
else # linux
|
||||||
|
if [[ "$BUILDARCH" == "x64" ]]; then
|
||||||
|
deb_arch=amd64
|
||||||
|
rpm_arch=x86_64
|
||||||
|
elif [[ "$BUILDARCH" == "ia32" ]]; then
|
||||||
|
deb_arch=i386
|
||||||
|
rpm_arch=i386
|
||||||
|
fi
|
||||||
|
sum_file VSCodium-linux*.tar.gz
|
||||||
|
sum_file vscode/.build/linux/deb/$(arch)/deb/*.deb
|
||||||
|
sum_file vscode/.build/linux/rpm/$(arch_alt)/*.rpm
|
||||||
|
fi
|
||||||
|
fi
|
@ -39,21 +39,22 @@ steps:
|
|||||||
- bash: |
|
- bash: |
|
||||||
if [[ "$SHOULD_BUILD" == "yes" ]]; then mv vscode\\.build\\win32-$(BUILDARCH)\\archive\\VSCode-win32-$(BUILDARCH).zip VSCodium-win32-$(BUILDARCH)-${LATEST_MS_TAG}.zip; fi
|
if [[ "$SHOULD_BUILD" == "yes" ]]; then mv vscode\\.build\\win32-$(BUILDARCH)\\archive\\VSCode-win32-$(BUILDARCH).zip VSCodium-win32-$(BUILDARCH)-${LATEST_MS_TAG}.zip; fi
|
||||||
displayName: 'move the zip folder'
|
displayName: 'move the zip folder'
|
||||||
|
- powershell: |
|
||||||
|
bash ./sum.sh
|
||||||
|
displayName: 'compute sums'
|
||||||
|
- task: CopyFiles@2
|
||||||
|
inputs:
|
||||||
|
contents: |
|
||||||
|
VSCodium*.zip
|
||||||
|
VSCodiumUserSetup*.exe
|
||||||
|
VSCodiumSetup*.exe
|
||||||
|
*.sha256
|
||||||
|
targetFolder: $(Build.ArtifactStagingDirectory)
|
||||||
|
condition: eq(variables['SHOULD_BUILD'], 'yes')
|
||||||
|
displayName: 'copy artifacts to staging directory'
|
||||||
- task: PublishBuildArtifacts@1
|
- task: PublishBuildArtifacts@1
|
||||||
displayName: 'Publish artifacts: system-setup'
|
displayName: 'Publish artifacts'
|
||||||
condition: eq(variables['SHOULD_BUILD'], 'yes')
|
condition: eq(variables['SHOULD_BUILD'], 'yes')
|
||||||
inputs:
|
inputs:
|
||||||
PathtoPublish: 'VSCodiumSetup-$(BUILDARCH)-$(LATEST_MS_TAG).exe'
|
PathtoPublish: $(Build.ArtifactStagingDirectory)
|
||||||
ArtifactName: 'system_setup'
|
ArtifactName: 'everything'
|
||||||
- task: PublishBuildArtifacts@1
|
|
||||||
displayName: 'Publish artifacts: user-setup'
|
|
||||||
condition: eq(variables['SHOULD_BUILD'], 'yes')
|
|
||||||
inputs:
|
|
||||||
PathtoPublish: 'VSCodiumUserSetup-$(BUILDARCH)-$(LATEST_MS_TAG).exe'
|
|
||||||
ArtifactName: 'user_setup'
|
|
||||||
- task: PublishBuildArtifacts@1
|
|
||||||
displayName: 'Publish artifacts: archive'
|
|
||||||
condition: eq(variables['SHOULD_BUILD'], 'yes')
|
|
||||||
inputs:
|
|
||||||
PathtoPublish: 'VSCodium-win32-$(BUILDARCH)-$(LATEST_MS_TAG).zip'
|
|
||||||
ArtifactName: 'archive'
|
|
||||||
|
Loading…
Reference in New Issue
Block a user