Skip to content

Commit 5aca55e

Browse files
ci: add --create flag to deployctl so app is auto-created if missing
1 parent 43efc8d commit 5aca55e

1 file changed

Lines changed: 13 additions & 6 deletions

File tree

.github/workflows/deploy-kilo-proxy.yml

Lines changed: 13 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -10,17 +10,24 @@ jobs:
1010
deploy:
1111
runs-on: ubuntu-latest
1212
permissions:
13-
id-token: write
1413
contents: read
1514

1615
steps:
1716
- uses: actions/checkout@v4
1817

19-
- name: Deploy to Deno Deploy
20-
uses: denoland/deployctl@v1
18+
- name: Install Deno
19+
uses: denoland/setup-deno@v2
2120
with:
22-
project: screenoperator-kilo-proxy
23-
entrypoint: cloudflare-worker/kilo-proxy/kilo_proxy.ts
24-
root: .
21+
deno-version: v2.x
22+
23+
- name: Deploy via deployctl (create if missing)
2524
env:
2625
DENO_DEPLOY_TOKEN: ${{ secrets.DENO_DEPLOY_TOKEN }}
26+
run: |
27+
set -e
28+
deno run -A jsr:@deno/deployctl deploy \
29+
--project=screenoperator-kilo-proxy \
30+
--token="$DENO_DEPLOY_TOKEN" \
31+
--no-static \
32+
--create \
33+
cloudflare-worker/kilo-proxy/kilo_proxy.ts

0 commit comments

Comments
 (0)