Skip to content

Commit

Permalink
zip the release binaries
Browse files Browse the repository at this point in the history
  • Loading branch information
realdatadriven committed Jan 18, 2025
1 parent 22754da commit 0ee0c5b
Showing 1 changed file with 10 additions and 4 deletions.
14 changes: 10 additions & 4 deletions .github/workflows/go.yml
Original file line number Diff line number Diff line change
Expand Up @@ -79,7 +79,8 @@ jobs:
- name: Build Windows Binary
run: |
mkdir dist
go build -tags=duckdb_use_lib -o dist/etlx-windows-amd64.exe ./cmd/main.go
go build -o dist/etlx-windows-amd64.exe ./cmd/main.go
#go build -tags=duckdb_use_lib -o dist/etlx-windows-amd64.exe ./cmd/main.go

- name: Upload Artifacts
uses: actions/upload-artifact@v3
Expand Down Expand Up @@ -151,15 +152,20 @@ jobs:
id: Changelog
env:
REPO: ${{ github.repository }}
- name: Zip Binaries
run: |
zip -j dist/etlx-linux-amd64.zip dist/etlx-linux-amd64
zip -j dist/etlx-macos-amd64.zip dist/etlx-macos-amd64
zip -j dist/etlx-windows-amd64.zip dist/etlx-windows-amd64.exe
- name: Create Release
uses: softprops/action-gh-release@v1
with:
tag_name: ${{ github.ref_name }}
draft: false
prerelease: true
files: |
dist/etlx-windows-amd64.exe
dist/etlx-macos-amd64
dist/etlx-linux-amd64
dist/etlx-linux-amd64.zip
dist/etlx-macos-amd64.zip
dist/etlx-windows-amd64.zip
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

0 comments on commit 0ee0c5b

Please sign in to comment.