Skip to content

Commit

Permalink
fix release artifact upload (#1009)
Browse files Browse the repository at this point in the history
  • Loading branch information
ije authored Jan 13, 2025
1 parent 792ce04 commit 658aada
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -110,17 +110,18 @@ 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 }}
CGO_ENABLED: "0"

- 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
Expand Down

0 comments on commit 658aada

Please sign in to comment.