chore: actually publish from circleci and always build node headers on vsts
This commit is contained in:
parent
9ec7137443
commit
ad9e01393d
2 changed files with 18 additions and 1 deletions
|
@ -179,6 +179,21 @@ step-nodejs-headers-build: &step-nodejs-headers-build
|
||||||
cd src
|
cd src
|
||||||
ninja -C out/Default third_party/electron_node:headers
|
ninja -C out/Default third_party/electron_node:headers
|
||||||
|
|
||||||
|
step-electron-publish: &step-electron-publish
|
||||||
|
run:
|
||||||
|
name: Publish Electron Dist
|
||||||
|
command: |
|
||||||
|
cd src/electron
|
||||||
|
if [ "$ELECTRON_RELEASE" == "1" ]; then
|
||||||
|
if [ "$UPLOAD_TO_S3" != "1" ]; then
|
||||||
|
echo 'Uploading Electron release distribution to github releases'
|
||||||
|
script/upload.py
|
||||||
|
else
|
||||||
|
echo 'Uploading Electron release distribution to s3'
|
||||||
|
script/upload.py --upload_to_s3
|
||||||
|
fi
|
||||||
|
fi
|
||||||
|
|
||||||
step-persist-data-for-tests: &step-persist-data-for-tests
|
step-persist-data-for-tests: &step-persist-data-for-tests
|
||||||
persist_to_workspace:
|
persist_to_workspace:
|
||||||
root: .
|
root: .
|
||||||
|
@ -411,6 +426,9 @@ steps-electron-build-for-publish: &steps-electron-build-for-publish
|
||||||
# Node.js headers
|
# Node.js headers
|
||||||
- *step-nodejs-headers-build
|
- *step-nodejs-headers-build
|
||||||
|
|
||||||
|
# Publish
|
||||||
|
- *step-electron-publish
|
||||||
|
|
||||||
|
|
||||||
steps-native-mksnapshot-build: &steps-native-mksnapshot-build
|
steps-native-mksnapshot-build: &steps-native-mksnapshot-build
|
||||||
steps:
|
steps:
|
||||||
|
|
1
vsts.yml
1
vsts.yml
|
@ -56,7 +56,6 @@ jobs:
|
||||||
cd src
|
cd src
|
||||||
ninja -C out/Default third_party/electron_node:headers
|
ninja -C out/Default third_party/electron_node:headers
|
||||||
displayName: Build Node.js headers for testing
|
displayName: Build Node.js headers for testing
|
||||||
condition: and(succeeded(), eq(variables['RUN_TESTS'], '1'))
|
|
||||||
|
|
||||||
- bash: |
|
- bash: |
|
||||||
cd src
|
cd src
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue