diff --git a/.github/workflows/build-vineyardd-and-wheels-linux.yaml b/.github/workflows/build-vineyardd-and-wheels-linux.yaml index 9c670d5b..6ad283fa 100644 --- a/.github/workflows/build-vineyardd-and-wheels-linux.yaml +++ b/.github/workflows/build-vineyardd-and-wheels-linux.yaml @@ -158,6 +158,11 @@ jobs: with: go-version: 1.19 + - name: Extract tag name + id: tag + if: ${{ github.event_name == 'push' && startsWith(github.ref, 'refs/tags/v') && github.repository == 'v6d-io/v6d' }} + run: echo "TAG=${GITHUB_REF#refs/tags/}" >> $GITHUB_OUTPUT + - name: Build vineyardctl run: | export arch="${{ matrix.platform }}" diff --git a/.github/workflows/build-vineyardd-and-wheels-macos.yaml b/.github/workflows/build-vineyardd-and-wheels-macos.yaml index 62473055..f4ed845f 100644 --- a/.github/workflows/build-vineyardd-and-wheels-macos.yaml +++ b/.github/workflows/build-vineyardd-and-wheels-macos.yaml @@ -219,6 +219,11 @@ jobs: brew install coreutils || true + - name: Extract tag name + id: tag + if: ${{ github.event_name == 'push' && startsWith(github.ref, 'refs/tags/v') && github.repository == 'v6d-io/v6d' }} + run: echo "TAG=${GITHUB_REF#refs/tags/}" >> $GITHUB_OUTPUT + - name: Build vineyardctl run: | export arch="${{ matrix.platform }}"