Update build to create deb and rpm packages

This commit is contained in:
Peter Squicciarini 2018-08-15 11:59:54 -04:00
parent 6825d14395
commit 58cff9026c
3 changed files with 8 additions and 2 deletions

View File

@ -25,7 +25,11 @@ deploy:
skip_cleanup: true
api_key: $GITHUB_TOKEN
file_glob: true
file: ./*.zip
file:
- ./*.zip
- ./*.tar.gz
- vscode/.build/linux/deb/amd64/deb/*.deb
- vscode/.build/linux/rpm/x86_64/*.rpm
on:
all_branches: true
condition: $SHOULD_BUILD = yes

View File

@ -12,6 +12,8 @@ if [[ "$SHOULD_BUILD" == "yes" ]]; then
npx gulp vscode-darwin-min
else
npx gulp vscode-linux-x64-min
npx gulp vscode-linux-x64-build-deb
npx gulp vscode-linux-x64-build-rpm
fi
cd ..

View File

@ -6,7 +6,7 @@ if [[ "$SHOULD_BUILD" == "yes" ]]; then
zip -r ../VSCode-darwin-${LATEST_MS_TAG}.zip ./*
else
cd VSCode-linux-x64
zip -r ../VSCode-linux-x64-${LATEST_MS_TAG}.zip ./*
tar czf ../VSCode-linux-x64-${LATEST_MS_TAG}.tar.gz .
fi
cd ..