File tree Expand file tree Collapse file tree 2 files changed +7
-4
lines changed
Expand file tree Collapse file tree 2 files changed +7
-4
lines changed Original file line number Diff line number Diff line change 11#! /bin/sh
22set -e -u -x
33
4+ apt-get update
5+ apt-get install zip unzip
6+
47# GET VERSION AND PATH
58# STORE VERSION AND PATH FOR BUILD
6- VERSION=$( cat gp-version/version)
9+ VERSION=" 1.0.0 " # $(cat gp-version/version)
710BUILDPATH=$( pwd)
811
912# CREATE GO DIRECTORY STRUCTURE
@@ -24,4 +27,4 @@ export GOARCH=amd64
2427# BUILD AND COMPRESS
2528export GOOS=windows
2629go build -ldflags " -X github.com/praqma/git-phlow/options.Version=` echo $VERSION ` -X github.com/praqma/git-phlow/options.Sha1=` git rev-parse HEAD` -X github.com/praqma/git-phlow/options.Date=` date +' %d-%m-%Y' ` "
27- tar -cvzf $BUILDPATH /build-artifacts/git-phlow-$VERSION -windows-$GOARCH .tar.gz git-phlow.exe
30+ zip $BUILDPATH /build-artifacts/git-phlow-$VERSION -windows-$GOARCH .tar.gz git-phlow.exe
Original file line number Diff line number Diff line change 8383 - task : create-release
8484 file : git-phlow/ci/build/windows.yml
8585 - put : phlow-artifact-windows-s3
86- params : {file: build-artifacts/git-phlow-*-windows-amd64.tar.gz}
86+ params : {file: build-artifacts/git-phlow-*-windows-amd64.zip}
8787
8888# PAC GOES HERE
8989
@@ -112,7 +112,7 @@ jobs:
112112 globs :
113113 - phlow-artifact-linux-s3/git-phlow-*-linux-amd64.tar.gz
114114 - phlow-artifact-darwin-s3/git-phlow-*-darwin-amd64.tar.gz
115- - phlow-artifact-windows-s3/git-phlow-*-windows-amd64.tar.gz
115+ - phlow-artifact-windows-s3/git-phlow-*-windows-amd64.zip
116116
117117
118118- name : afterburner
You can’t perform that action at this time.
0 commit comments