From e5253e08cfabc36731fd2ca7fbe8bfda3d37c1f7 Mon Sep 17 00:00:00 2001 From: Aneesh Atri Date: Thu, 19 Sep 2024 14:47:35 -0400 Subject: [PATCH] use different script --- .github/workflows/dd-build.yaml | 16 +++++++--------- 1 file changed, 7 insertions(+), 9 deletions(-) diff --git a/.github/workflows/dd-build.yaml b/.github/workflows/dd-build.yaml index 9d6c55bce5d..8786cd0f6a6 100644 --- a/.github/workflows/dd-build.yaml +++ b/.github/workflows/dd-build.yaml @@ -17,20 +17,18 @@ jobs: - uses: actions/checkout@v4 with: fetch-depth: 0 - - name: Set up Go - uses: actions/setup-go@v5 - with: - go-version: 1.22 - - name: Set env - run: echo SANITIZED_TARGET_PLATFORM=${ETCD_BUILD_PLATFORM/\//-} >> $GITHUB_ENV + - name: Set relase version environment variable + run: echo RELEASE_VERSION=${GITHUB_REF#*} >> $GITHUB_ENV env: - ETCD_BUILD_PLATFORM: ${{ matrix.platform }} + GITHUB_REF: ${{ github.ref }} - name: Build etcd - run: make build + run: GOOS=linux ./scripts/build-binary ${VERSION} + env: + VERSION: ${{ env.RELASE_VERSION }} - name: Calculate checksums id: calculate_checksums shell: bash - working-directory: _output/release-tars + working-directory: /release env: ETCD_BUILD_PLATFORM: ${{ matrix.platform }} run: |