From 2df982197d42fb8ea7e2737069861bd788007584 Mon Sep 17 00:00:00 2001 From: Kenneth Bingham Date: Wed, 15 Feb 2023 17:55:56 -0500 Subject: [PATCH] upload the CI build artifact so we can run download and run it when testing a branch --- .github/workflows/ci-build.yml | 15 ++++++++++++++- 1 file changed, 14 insertions(+), 1 deletion(-) diff --git a/.github/workflows/ci-build.yml b/.github/workflows/ci-build.yml index 71b4ccee..a224d402 100644 --- a/.github/workflows/ci-build.yml +++ b/.github/workflows/ci-build.yml @@ -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 ./... \ No newline at end of file + 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 \ No newline at end of file