Skip to content
This repository has been archived by the owner on Jul 12, 2022. It is now read-only.

fix generate version in windows #195

Merged
merged 3 commits into from
Jun 23, 2020
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 4 additions & 5 deletions .circleci/config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -247,6 +247,10 @@ jobs:
. ./.circleci/scripts/version.sh
go mod download
make build-circle
- run:
name: Persist version file
command: |
echo $RELEASE_VERSION > workspace/dist/release_version.txt
- persist_to_workspace:
root: dist
paths:
Expand Down Expand Up @@ -317,11 +321,6 @@ jobs:
- checkout
- attach_workspace:
at: /workspace/dist
- run:
command: |
. ./.circleci/scripts/version.sh
echo $RELEASE_VERSION > release_version.txt
shell: bash.exe
- run:
command: |
.circleci/scripts/gen-win.ps1
Expand Down
2 changes: 1 addition & 1 deletion .circleci/scripts/gen-win.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ Unzip "$((Get-Item -Path ".\").FullName)\wix310-binaries.zip" "C:\\Users\circlec

Write-Output 'Setting Release Version Variable'

$release_version=$(Get-Content .\release_version.txt)
$release_version=$(Get-Content .\workspace\dist\release_version.txt)

mkdir dist\installer

Expand Down