added upload windows installer using azure cli orb

pull/10237/head
Rahul Somasundaram 4 years ago
parent d72b0190f7
commit c474aa2c09
No known key found for this signature in database
GPG Key ID: 466FF35FC278207A

@ -3,6 +3,7 @@ version: 2.1
orbs: orbs:
win: circleci/windows@2.2.0 win: circleci/windows@2.2.0
azure-cli: circleci/azure-cli@1.0.0
jobs: jobs:
build: build:
@ -45,12 +46,27 @@ jobs:
at: 'C:\tmp\workspace' at: 'C:\tmp\workspace'
- run: - run:
name: Copy from Workspace name: Copy from Workspace
command: 'Copy-Item "C:\tmp\workspace\*" "package" -Recurse' command: Copy-Item -Path "C:\tmp\workspace\*" -Destination "package\dist" -Recurse
- run: - run:
name: install innosetup and build name: install innosetup and build
command: Set-Location package; .\build.ps1 command: Set-Location package; dir; .\build.ps1
- persist_to_workspace:
root: .
paths:
- package/output/*
- store_artifacts: - store_artifacts:
path: output/ path: package/output/*
upload-binary:
executor: azure-cli/default
steps:
- azure-cli/install
- attach_workspace:
at: '\tmp\workspace'
- run:
name: Upload binary
command: cd \tmp\workspace\ && ls && az storage blob upload-batch -s . -d "$AZURE_STORAGE_CONTAINER_NAME" --pattern 'helm_*' --connection-string "$AZURE_STORAGE_CONNECTION_STRING"
workflows: workflows:
version: 2 version: 2
@ -66,3 +82,10 @@ workflows:
filters: filters:
tags: tags:
only: /.*/ only: /.*/
- upload-binary:
requires:
- build
- generate-windows-installer
filters:
tags:
only: /.*/

@ -7,11 +7,11 @@ PrivilegesRequired=lowest
AppPublisher=Helm AppPublisher=Helm
AppPublisherURL=https://helm.sh AppPublisherURL=https://helm.sh
AppSupportURL=https://github.com/helm/helm AppSupportURL=https://github.com/helm/helm
LicenseFile="windows-amd64\LICENSE" LicenseFile="dist\LICENSE"
OutputBaseFilename=helm_installer_win64 OutputBaseFilename=helm_installer_win64
[Files] [Files]
Source: "windows-amd64\*" ; DestDir: "{app}\bin"; Source: "dist\*" ; DestDir: "{app}\bin";
[Registry] [Registry]
Root: "HKCU"; Subkey: "Environment"; ValueType: expandsz; ValueName: "Path"; ValueData: "{olddata};{app}\bin"; Check: NeedsAddPathHKCU(ExpandConstant('{app}\bin')) Root: "HKCU"; Subkey: "Environment"; ValueType: expandsz; ValueName: "Path"; ValueData: "{olddata};{app}\bin"; Check: NeedsAddPathHKCU(ExpandConstant('{app}\bin'))

Loading…
Cancel
Save