From 658aada7d94f3f536c9cdf777eb90d9c28ab54c4 Mon Sep 17 00:00:00 2001 From: Je Xia Date: Mon, 13 Jan 2025 17:03:44 +0800 Subject: [PATCH] fix release artifact upload (#1009) --- .github/workflows/release.yml | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 8b7268a1..ae558fea 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -110,7 +110,7 @@ jobs: registry-url: 'https://registry.npmjs.org' - name: Build CLI - run: go build -ldflags="-s -w -X 'github.com/esm-dev/esm.sh/server.VERSION=${{ github.ref_name }}'" -o cli/tmp/bin/esm.sh${{ matrix.ext }} cli/cmd/main.go + run: go build -ldflags="-s -w -X 'github.com/esm-dev/esm.sh/server.VERSION=${{ github.ref_name }}'" -o cli/tmp/bin/esm.sh-cli-${{ matrix.os }}-${{ matrix.arch }}${{ matrix.ext }} cli/cmd/main.go env: GOOS: ${{ matrix.os }} GOARCH: ${{ matrix.arch }} @@ -118,9 +118,10 @@ jobs: - name: Upload Artifact uses: actions/upload-artifact@v4 + working-directory: cli/tmp/bin with: name: esm.sh-cli-${{ matrix.os }}-${{ matrix.arch }} - path: cli/tmp/bin/esm.sh${{ matrix.ext }} + path: esm.sh-cli-${{ matrix.os }}-${{ matrix.arch }}${{ matrix.ext }} if-no-files-found: error - name: Create package.json