Skip to content

Commit

Permalink
fix: zip relative path
Browse files Browse the repository at this point in the history
  • Loading branch information
ayuhito committed Jun 22, 2024
1 parent 077b0b6 commit e48053f
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -31,12 +31,12 @@ jobs:
run: task core:release:${{ matrix.os == 'ubuntu-latest' && 'linux' || 'darwin' }}:${{ matrix.arch }}

- name: Zip Artifact
run: zip release/medama-${{ matrix.os == 'ubuntu-latest' && 'linux' || 'darwin' }}_${{ matrix.arch }}.zip core/bin/${{ matrix.os == 'ubuntu-latest' && 'linux' || 'darwin' }}_${{ matrix.arch }}
run: zip release/medama-${{ matrix.os == 'ubuntu-latest' && 'linux' || 'darwin' }}-${{ matrix.arch }}.zip ./core/bin/${{ matrix.os == 'ubuntu-latest' && 'linux' || 'darwin' }}_${{ matrix.arch }}

- uses: actions/upload-artifact@v4
with:
name: release-${{ matrix.os == 'ubuntu-latest' && 'linux' || 'darwin' }}-${{ matrix.arch }}
path: release/${{ matrix.os == 'ubuntu-latest' && 'linux' || 'darwin' }}_${{ matrix.arch }}.zip
path: release/${{ matrix.os == 'ubuntu-latest' && 'linux' || 'darwin' }}-${{ matrix.arch }}.zip
retention-days: 1
if-no-files-found: error

Expand Down
4 changes: 2 additions & 2 deletions core/Taskfile.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -110,7 +110,7 @@ tasks:
GOOS: "linux"
GOARCH: "arm64"

release:macos:amd64:
release:darwin:amd64:
cmds:
- go build -o ./bin/darwin_amd64 -ldflags "-s -w" -trimpath -tags "no_duckdb_arrow" ./cmd/
- echo "darwin/amd64 build done"
Expand All @@ -120,7 +120,7 @@ tasks:
GOOS: "darwin"
GOARCH: "amd64"

release:macos:arm64:
release:darwin:arm64:
cmds:
- go build -o ./bin/darwin_arm64 -ldflags "-s -w" -trimpath -tags "no_duckdb_arrow" ./cmd/
- echo "darwin/arm64 build done"
Expand Down

0 comments on commit e48053f

Please sign in to comment.