mirror of
https://github.com/harivansh-afk/sandbox-agent.git
synced 2026-04-15 10:05:18 +00:00
refactor: rename sandbox-daemon to sandbox-agent
This commit is contained in:
parent
f92ecd9b9a
commit
a49ea094f3
41 changed files with 808 additions and 134 deletions
20
.github/workflows/release.yaml
vendored
20
.github/workflows/release.yaml
vendored
|
|
@ -29,6 +29,13 @@ jobs:
|
|||
with:
|
||||
fetch-depth: 0
|
||||
|
||||
- uses: actions/setup-node@v4
|
||||
with:
|
||||
node-version: 20
|
||||
|
||||
- name: Install tsx
|
||||
run: npm install -g tsx
|
||||
|
||||
- name: Resolve version
|
||||
id: vars
|
||||
run: |
|
||||
|
|
@ -44,7 +51,7 @@ jobs:
|
|||
- name: Determine latest
|
||||
id: latest
|
||||
run: |
|
||||
node scripts/release/main.js --version "${{ steps.vars.outputs.version }}" --print-latest --output "$GITHUB_OUTPUT"
|
||||
./scripts/release/main.ts --version "${{ steps.vars.outputs.version }}" --print-latest --output "$GITHUB_OUTPUT"
|
||||
|
||||
binaries:
|
||||
name: "Build & Upload Binaries"
|
||||
|
|
@ -97,11 +104,11 @@ jobs:
|
|||
AWS_SECRET_ACCESS_KEY: ${{ secrets.R2_RELEASES_SECRET_ACCESS_KEY }}
|
||||
run: |
|
||||
VERSION="${{ needs.setup.outputs.version }}"
|
||||
BINARY_NAME="sandbox-daemon-${{ matrix.target }}${{ matrix.binary_ext }}"
|
||||
BINARY_NAME="sandbox-agent-${{ matrix.target }}${{ matrix.binary_ext }}"
|
||||
|
||||
aws s3 cp \
|
||||
"dist/${BINARY_NAME}" \
|
||||
"s3://rivet-releases/sandbox-daemon/${VERSION}/${BINARY_NAME}" \
|
||||
"s3://rivet-releases/sandbox-agent/${VERSION}/${BINARY_NAME}" \
|
||||
--region auto \
|
||||
--endpoint-url https://2a94c6a0ced8d35ea63cddc86c2681e7.r2.cloudflarestorage.com \
|
||||
--checksum-algorithm CRC32
|
||||
|
|
@ -109,7 +116,7 @@ jobs:
|
|||
if [ "${{ needs.setup.outputs.latest }}" = "true" ]; then
|
||||
aws s3 cp \
|
||||
"dist/${BINARY_NAME}" \
|
||||
"s3://rivet-releases/sandbox-daemon/latest/${BINARY_NAME}" \
|
||||
"s3://rivet-releases/sandbox-agent/latest/${BINARY_NAME}" \
|
||||
--region auto \
|
||||
--endpoint-url https://2a94c6a0ced8d35ea63cddc86c2681e7.r2.cloudflarestorage.com \
|
||||
--checksum-algorithm CRC32
|
||||
|
|
@ -128,6 +135,9 @@ jobs:
|
|||
with:
|
||||
node-version: 20
|
||||
|
||||
- name: Install tsx
|
||||
run: npm install -g tsx
|
||||
|
||||
- name: Install AWS CLI
|
||||
run: |
|
||||
sudo apt-get update
|
||||
|
|
@ -149,4 +159,4 @@ jobs:
|
|||
LATEST_FLAG="--no-latest"
|
||||
fi
|
||||
|
||||
node scripts/release/main.js --version "$VERSION" $LATEST_FLAG --upload-typescript --upload-install
|
||||
./scripts/release/main.ts --version "$VERSION" $LATEST_FLAG --upload-typescript --upload-install
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue