mirror of
https://github.com/sst/opencode.git
synced 2025-08-31 18:27:22 +00:00
ci: share
This commit is contained in:
parent
e7784d2864
commit
a85b0a370e
3 changed files with 4 additions and 3 deletions
3
.github/workflows/deploy.yml
vendored
3
.github/workflows/deploy.yml
vendored
|
@ -4,6 +4,7 @@ on:
|
||||||
push:
|
push:
|
||||||
branches:
|
branches:
|
||||||
- dev
|
- dev
|
||||||
|
- production
|
||||||
workflow_dispatch:
|
workflow_dispatch:
|
||||||
|
|
||||||
concurrency: ${{ github.workflow }}-${{ github.ref }}
|
concurrency: ${{ github.workflow }}-${{ github.ref }}
|
||||||
|
@ -20,6 +21,6 @@ jobs:
|
||||||
|
|
||||||
- run: bun install
|
- run: bun install
|
||||||
|
|
||||||
- run: bun sst deploy --stage=dev
|
- run: bun sst deploy --stage=${{ github.ref_name }}
|
||||||
env:
|
env:
|
||||||
CLOUDFLARE_API_TOKEN: ${{ secrets.CLOUDFLARE_API_TOKEN }}
|
CLOUDFLARE_API_TOKEN: ${{ secrets.CLOUDFLARE_API_TOKEN }}
|
||||||
|
|
|
@ -120,7 +120,7 @@ export default {
|
||||||
return new Response(
|
return new Response(
|
||||||
JSON.stringify({
|
JSON.stringify({
|
||||||
secret,
|
secret,
|
||||||
url: "https://dev.opencode.ai/s/" + short,
|
url: "https://opencode.ai/s/" + short,
|
||||||
}),
|
}),
|
||||||
{
|
{
|
||||||
headers: { "Content-Type": "application/json" },
|
headers: { "Content-Type": "application/json" },
|
||||||
|
|
|
@ -89,7 +89,7 @@ export const RunCommand = cmd({
|
||||||
await Session.share(session.id)
|
await Session.share(session.id)
|
||||||
UI.println(
|
UI.println(
|
||||||
UI.Style.TEXT_INFO_BOLD +
|
UI.Style.TEXT_INFO_BOLD +
|
||||||
"~ https://dev.opencode.ai/s/" +
|
"~ https://opencode.ai/s/" +
|
||||||
session.id.slice(-8),
|
session.id.slice(-8),
|
||||||
)
|
)
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue