upload the CI build artifact so we can run download and run it when testing a branch

This commit is contained in:
Kenneth Bingham 2023-02-15 17:55:56 -05:00
parent 7f262f12cc
commit 2df982197d
No known key found for this signature in database
GPG Key ID: 31709281860130B6

View File

@ -35,4 +35,17 @@ jobs:
run: go install -ldflags "-X github.com/openziti/zrok/build.Version=${{ github.ref }} -X github.com/openziti/zrok/build.Hash=${{ github.sha }}" ./...
- name: test
run: go test -v ./...
run: go test -v ./...
- name: solve GOBIN
id: solve_go_bin
run: |
echo DEBUG: go_path="$(go env GOPATH)"
echo go_bin="$(go env GOPATH)/bin" >> $GITHUB_OUTPUT
- name: upload build artifact
uses: actions/upload-artifact@v3
with:
name: linux-amd64
path: ${{ steps.solve_go_bin.outputs.go_bin }}/zrok
if-no-files-found: error