feat(cli): add build and upload step
This commit is contained in:
parent
91aeb0793c
commit
d2d65027f7
@ -52,6 +52,16 @@ jobs:
|
|||||||
# environment: production
|
# environment: production
|
||||||
# sourcemaps: ./build/app/
|
# sourcemaps: ./build/app/
|
||||||
|
|
||||||
|
- name: Upload CLI to R2
|
||||||
|
uses: shallwefootball/s3-upload-action@master
|
||||||
|
with:
|
||||||
|
aws_key_id: ${{ secrets.R2_ACCESS_ID }}
|
||||||
|
aws_secret_access_key: ${{ secrets.R2_ACCESS_SECRET }}
|
||||||
|
aws_bucket: ${{ secrets.R2_BUCKET }}
|
||||||
|
endpoint: ${{ secrets.R2_URL }}
|
||||||
|
source_dir: "build/cli"
|
||||||
|
destination_dir: "cli"
|
||||||
|
|
||||||
|
|
||||||
- name: Set docker chmod (temp solution)
|
- name: Set docker chmod (temp solution)
|
||||||
run: sudo chmod 666 /var/run/docker.sock
|
run: sudo chmod 666 /var/run/docker.sock
|
||||||
|
@ -2,6 +2,13 @@
|
|||||||
"name": "@boring.tools/cli",
|
"name": "@boring.tools/cli",
|
||||||
"module": "src/index.ts",
|
"module": "src/index.ts",
|
||||||
"type": "module",
|
"type": "module",
|
||||||
|
"scripts": {
|
||||||
|
"build:linux": "bun build --compile --target=bun-linux-x64-modern ./src/index.ts --outfile ../../build/cli/linux/bt",
|
||||||
|
"build:mac:arm": "bun build --compile --target=bun-darwin-arm64 ./src/index.ts --outfile ../../build/cli/mac-arm/bt",
|
||||||
|
"build:mac:intel": "bun build --compile --target=bun-darwin-x64 ./src/index.ts --outfile ../../build/cli/mac-intel/bt",
|
||||||
|
"build:win": "bun build --compile --target=bun-windows-x64-modern ./src/index.ts --outfile ../../build/cli/windows/bt",
|
||||||
|
"build": "bun run build:linux && bun run build:mac:arm && bun run build:mac:intel && bun run build:win"
|
||||||
|
},
|
||||||
"devDependencies": {
|
"devDependencies": {
|
||||||
"@types/bun": "latest"
|
"@types/bun": "latest"
|
||||||
},
|
},
|
||||||
|
Loading…
Reference in New Issue
Block a user