From 2250d3aaf591cd06155ae0cb660788a2aa4e1293 Mon Sep 17 00:00:00 2001 From: jliddev Date: Thu, 4 Feb 2021 15:00:39 -0600 Subject: [PATCH] Update azure-pipelines.yml for Azure Pipelines --- azure-pipelines.yml | 68 ++++++++++++++++++++++++++++++++------------- 1 file changed, 48 insertions(+), 20 deletions(-) diff --git a/azure-pipelines.yml b/azure-pipelines.yml index 3d14f43b..7c1e53ec 100644 --- a/azure-pipelines.yml +++ b/azure-pipelines.yml @@ -26,27 +26,55 @@ jobs: npm install -g @angular/cli cd ./wowup-electron npm i + npm run electron:publish env: GH_TOKEN: $(GITHUB_TOKEN) -# - job: Windows -# pool: -# vmImage: 'windows-latest' -# steps: -# - task: NodeTool@0 -# inputs: -# versionSpec: '10.x' -# displayName: 'Install Node.js' +- job: Windows + pool: + vmImage: 'windows-latest' + strategy: + matrix: + node_14_x: + node_version: 14.x + steps: + - task: NodeTool@0 + inputs: + versionSpec: $(node_version) + displayName: 'Install Node.js' + - script: | + node -v + npm install -g @angular/cli + cd ./wowup-electron + npm i + npm run electron:publish + env: + GH_TOKEN: $(GITHUB_TOKEN) + CSC_LINK: $(WINDOWS_CSC_LINK) + CSC_KEY_PASSWORD: $(WINDOWS_CSC_KEY_PASSWORD) -# - job: macOS -# pool: -# vmImage: 'macOS-latest' -# steps: -# - task: NodeTool@0 -# inputs: -# versionSpec: '10.x' -# displayName: 'Install Node.js' -# - script: | -# npm install -# npm run build -# displayName: 'npm install and build' +- job: MacOS + pool: + vmImage: 'macOS-latest' + strategy: + matrix: + node_14_x: + node_version: 14.x + steps: + - task: NodeTool@0 + inputs: + versionSpec: $(node_version) + displayName: 'Install Node.js' + - script: | + node -v + npm install -g @angular/cli + cd ./wowup-electron + npm i + npm run electron:publish + env: + GH_TOKEN: $(GITHUB_TOKEN) + CSC_LINK: $(MACOS_CERT) + CSC_KEY_PASSWORD: $(MACOS_CERT_PASSWORD) + NOTARIZE_APPLE_ID: $(NOTARIZE_APPLE_ID) + NOTARIZE_APPLE_PASSWORD: $(NOTARIZE_APPLE_PASSWORD) + NOTARIZE_APPLE_TEAM_ID: $(NOTARIZE_APPLE_TEAM_ID)