Browse Source

4rd attempt at setting path

Matthew R. Kasun 3 years ago
parent
commit
e739f38507
1 changed files with 4 additions and 1 deletions
  1. 4 1
      .github/workflows/buildandrelease.yml

+ 4 - 1
.github/workflows/buildandrelease.yml

@@ -448,12 +448,15 @@ jobs:
       - name: Build
       - name: Build
         run: |
         run: |
           echo $(go env GOPATH)/bin >> $GITHUB_PATH
           echo $(go env GOPATH)/bin >> $GITHUB_PATH
+          echo $(go env GOPATH)/bin >> $PATH
           echo $PATH
           echo $PATH
           go env
           go env
           cd netclient
           cd netclient
+          which go
           go get github.com/josephspurrier/goversioninfo
           go get github.com/josephspurrier/goversioninfo
+          find . -name goversioninfo 
           go generate
           go generate
-          dir
+          ls
           env CGO_ENABLED=1 GOOS=windows GOARCH=amd64 go build -tags=gui -ldflags="-X 'main.version=${NETMAKER_VERSION}'" -o build/netclient.exe main.go
           env CGO_ENABLED=1 GOOS=windows GOARCH=amd64 go build -tags=gui -ldflags="-X 'main.version=${NETMAKER_VERSION}'" -o build/netclient.exe main.go
         shell: bash
         shell: bash