From d61a2eee2edc7e8359e17a649d989298b731bffa Mon Sep 17 00:00:00 2001 From: Michael Quigley Date: Wed, 2 Nov 2022 15:43:17 -0400 Subject: [PATCH] workflows (#70) --- .github/workflows/ci-build.yml | 4 ++-- .github/workflows/release.yml | 6 +++--- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/.github/workflows/ci-build.yml b/.github/workflows/ci-build.yml index 929163fd1..f81d1fa97 100644 --- a/.github/workflows/ci-build.yml +++ b/.github/workflows/ci-build.yml @@ -26,8 +26,8 @@ jobs: env: CI: "" - - name: go build - run: go build -ldflags "-X github.com/openziti-test-kitchen/zrok/build.Version=${{ github.ref }} -X github.com/openziti-test-kitchen/zrok/build.Hash=${{ github.sha }}" ./... + - name: go install + run: go install -ldflags "-X github.com/openziti-test-kitchen/zrok/build.Version=${{ github.ref }} -X github.com/openziti-test-kitchen/zrok/build.Hash=${{ github.sha }}" ./... - name: test run: go test -v ./... \ No newline at end of file diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 8e0a93029..53d9b47b4 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -29,8 +29,8 @@ jobs: env: CI: "" - - name: go build - run: go build -ldflags "-X github.com/openziti-test-kitchen/zrok/build.Version=${{ github.ref }} -X github.com/openziti-test-kitchen/zrok/build.Hash=${{ github.sha }}" ./... + - name: go install + run: go install -ldflags "-X github.com/openziti-test-kitchen/zrok/build.Version=${{ github.ref }} -X github.com/openziti-test-kitchen/zrok/build.Hash=${{ github.sha }}" ./... - name: test run: go test -v ./... @@ -53,6 +53,6 @@ jobs: GITHUB_TOKEN: ${{ github.token }} with: upload_url: ${{ steps.create_release.outputs.upload_url }} - asset_path: ${{ GOPATH }}/bin/zrok + asset_path: ~/go/bin/zrok asset_name: zrok-ubuntu-amd64 asset_content_type: application/octet-stream \ No newline at end of file