From 95eb73819ff8c0ebc41fab09bcae2b92c8678dac Mon Sep 17 00:00:00 2001 From: Din Music Date: Sat, 13 Apr 2024 20:10:45 +0200 Subject: [PATCH] github: Update build commands Signed-off-by: Din Music --- .github/actions/runner-setup/action.yml | 2 +- .github/workflows/release-binaries.yml | 6 +++--- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/.github/actions/runner-setup/action.yml b/.github/actions/runner-setup/action.yml index 7c13fd86..996ae993 100644 --- a/.github/actions/runner-setup/action.yml +++ b/.github/actions/runner-setup/action.yml @@ -35,6 +35,6 @@ runs: - name: Build Kubitect shell: bash run: | - go build -ldflags "-s -w" -trimpath . + go build -ldflags "-s -w" -trimpath -o kubitect ./cmd sudo mv kubitect /usr/local/bin/kubitect kubitect --version diff --git a/.github/workflows/release-binaries.yml b/.github/workflows/release-binaries.yml index 8dd2f029..e2857ea9 100644 --- a/.github/workflows/release-binaries.yml +++ b/.github/workflows/release-binaries.yml @@ -23,8 +23,6 @@ jobs: exclude: - goarch: "386" goos: darwin - env: - go-version: 1.21 steps: - name: Checkout uses: actions/checkout@v4 @@ -36,5 +34,7 @@ jobs: extra_files: LICENSE goos: ${{ matrix.goos }} goarch: ${{ matrix.goarch }} - goversion: ${{ env.go-version }} + goversion: go.mod github_token: ${{ github.token }} + project_path: ./cmd +