Skip to content

Commit 1e3eec3

Browse files
committed
feat: add binaries
1 parent 8e3b58b commit 1e3eec3

File tree

3 files changed

+23
-1
lines changed

3 files changed

+23
-1
lines changed

.github/workflows/release.yml

+16
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,23 @@ jobs:
3434
env:
3535
BUN_AUTH_TOKEN: ${{secrets.NPM_TOKEN}}
3636

37+
- name: Compile Binaries
38+
run: bun run compile:all
39+
3740
- name: Create GitHub release
3841
run: bunx changelogithub
3942
env:
4043
GITHUB_TOKEN: ${{secrets.GITHUB_TOKEN}}
44+
45+
- name: Attach Binaries
46+
uses: softprops/action-gh-release@v2
47+
with:
48+
body_path: CHANGELOG.md
49+
files: |
50+
bin/dtsx-linux-x64
51+
bin/dtsx-linux-arm64
52+
bin/dtsx-windows-x64.exe
53+
bin/dtsx-darwin-x64
54+
bin/dtsx-darwin-arm64
55+
env:
56+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

.gitignore

+1-1
Original file line numberDiff line numberDiff line change
@@ -13,4 +13,4 @@ temp
1313
docs/.vitepress/cache
1414
storage
1515
fixtures/generated
16-
dtsx
16+
bin/dtsx*

package.json

+6
Original file line numberDiff line numberDiff line change
@@ -42,6 +42,12 @@
4242
"scripts": {
4343
"build": "bun build.ts && bun run compile",
4444
"compile": "bun build ./bin/cli.ts --compile --minify --outfile bin/dtsx",
45+
"compile:all": "bun run compile:linux-x64 && bun run compile:linux-arm64 && bun run compile:windows-x64 && bun run compile:darwin-x64 && bun run compile:darwin-arm64",
46+
"compile:linux-x64": "bun build ./bin/cli.ts --compile --minify --target=bun-linux-x64 --outfile bin/dtsx-linux-x64",
47+
"compile:linux-arm64": "bun build ./bin/cli.ts --compile --minify --target=bun-linux-arm64 --outfile bin/dtsx-linux-arm64",
48+
"compile:windows-x64": "bun build ./bin/cli.ts --compile --minify --target=bun-windows-x64 --outfile bin/dtsx-windows-x64.exe",
49+
"compile:darwin-x64": "bun build ./bin/cli.ts --compile --minify --target=bun-darwin-x64 --outfile bin/dtsx-darwin-x64",
50+
"compile:darwin-arm64": "bun build ./bin/cli.ts --compile --minify --target=bun-darwin-arm64 --outfile bin/dtsx-darwin-arm64",
4551
"lint": "bunx eslint .",
4652
"lint:fix": "bunx eslint . --fix",
4753
"fresh": "bunx rimraf node_modules/ bun.lock && bun i",

0 commit comments

Comments
 (0)