Skip to content

Commit 658aada

Browse files
authored
fix release artifact upload (#1009)
1 parent 792ce04 commit 658aada

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

.github/workflows/release.yml

+3-2
Original file line numberDiff line numberDiff line change
@@ -110,17 +110,18 @@ jobs:
110110
registry-url: 'https://registry.npmjs.org'
111111

112112
- name: Build CLI
113-
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
113+
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
114114
env:
115115
GOOS: ${{ matrix.os }}
116116
GOARCH: ${{ matrix.arch }}
117117
CGO_ENABLED: "0"
118118

119119
- name: Upload Artifact
120120
uses: actions/upload-artifact@v4
121+
working-directory: cli/tmp/bin
121122
with:
122123
name: esm.sh-cli-${{ matrix.os }}-${{ matrix.arch }}
123-
path: cli/tmp/bin/esm.sh${{ matrix.ext }}
124+
path: esm.sh-cli-${{ matrix.os }}-${{ matrix.arch }}${{ matrix.ext }}
124125
if-no-files-found: error
125126

126127
- name: Create package.json

0 commit comments

Comments
 (0)