Skip to content

Commit 326bdd4

Browse files
committed
close #300 fix choco release job
1 parent 506fbb0 commit 326bdd4

File tree

4 files changed

+5
-6
lines changed

4 files changed

+5
-6
lines changed

ci/chocolatey/chocolatey.ps1

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,16 +1,15 @@
11
## concourse task for releasing a package on chocolatey
2+
$env:Path = [System.Environment]::GetEnvironmentVariable("Path","Machine")
3+
$ErrorActionPreference = "Stop"
24

35
ls #debugging
46

57
# read version from file
68
$version = Get-Content .\gp-version\version
79

8-
Expand-Archive .\phlow-artifact-windows-s3\git-phlow-*.zip -DestinationPath .\phlow-artifact-windows-s3
9-
1010
# list artifact for debugging purpose
1111
ls .\phlow-artifact-windows-s3
1212

13-
1413
mv phlow-artifact-windows-s3/git-phlow.exe git-phlow/ci/chocolatey/tools/
1514

1615
cd git-phlow/ci/chocolatey
@@ -29,4 +28,4 @@ choco pack
2928

3029
choco push --api-key $token
3130

32-
exit $lastexitcode
31+
exit $LastExitCode

ci/chocolatey/chocolatey.yml

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,5 @@ params:
1212
run:
1313
path: powershell.exe
1414
args:
15-
- -File
1615
- '.\git-phlow\ci\chocolatey\chocolatey.ps1'
1716

ci/pipeline.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -164,6 +164,8 @@ jobs:
164164
- get: git-phlow
165165
- get: phlow-artifact-windows-s3
166166
passed: [takeoff]
167+
params:
168+
unpack: true
167169
- get: gp-version
168170
passed: [takeoff]
169171
trigger: true

ci/windows/windows.yml

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,5 +7,4 @@ inputs:
77
run:
88
path: powershell.exe
99
args:
10-
- -File
1110
- '.\git-phlow\ci\windows\go-test-windows.ps1'

0 commit comments

Comments
 (0)