File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 4141 skip-pkg-cache : true
4242 args : --issues-exit-code=0
4343
44- - name : Build with version info
45- run : |
46- TAG=$(git describe --tags --always)
47- COMMIT=$(git rev-parse --short HEAD)
48- DATE=$(date -u +'%Y-%m-%dT%H:%M:%SZ')
49-
50- go build -ldflags="-X github.com/apiqube/cli/cmd/cli.version=$TAG -X github.com/apiqube/cli/cmd/cli.commit=$COMMIT -X github.com/apiqube/cli/cmd/cli.date=$DATE" -o qube ./cmd/qube
51-
52- ./qube version
53- mkdir -p bin
54- mv qube bin/
55-
56- - name : Upload artifact
57- uses : actions/upload-artifact@v4
58- with :
59- name : qube-binaries
60- path : bin/qube
61-
6244 release :
6345 needs : build-and-test
6446 runs-on : ubuntu-latest
@@ -102,13 +84,17 @@ jobs:
10284 COMMIT=$(git rev-parse --short HEAD)
10385 DATE=$(date -u +'%Y-%m-%dT%H:%M:%SZ')
10486
105- go build -ldflags="\
106- -X github.com/apiqube/cli/cmd/qube.version=$TAG \
107- -X github.com/apiqube/cli/cmd/qube.commit=$COMMIT \
108- -X github.com/apiqube/cli/cmd/qube.date=$DATE" \
109- -o qube ./cmd/qube
87+ go build -ldflags="-X github.com/apiqube/cli/cmd/cli.version=$TAG -X github.com/apiqube/cli/cmd/cli.commit=$COMMIT -X github.com/apiqube/cli/cmd/cli.date=$DATE" -o qube ./cmd/qube
11088
11189 ./qube version
90+ mkdir -p bin
91+ mv qube bin/
92+
93+ - name : Upload artifact
94+ uses : actions/upload-artifact@v4
95+ with :
96+ name : qube-binaries
97+ path : bin/qube
11298
11399 - name : Create GitHub Release (if not exists)
114100 env :
You can’t perform that action at this time.
0 commit comments