Commit 5274fdc 1 parent 6f1cebe commit 5274fdc Copy full SHA for 5274fdc
File tree 1 file changed +32
-12
lines changed
1 file changed +32
-12
lines changed Original file line number Diff line number Diff line change 1
- name : Deploy to Cloudflare Workers
2
-
1
+ name : Deploy
3
2
on :
4
3
push :
5
- branches :
6
- - main
4
+ branches : main
5
+ pull_request :
6
+ branches : main
7
7
8
8
jobs :
9
9
deploy :
10
+ name : Deploy
10
11
runs-on : ubuntu-latest
11
12
13
+ permissions :
14
+ id-token : write # Needed for auth with Deno Deploy
15
+ contents : read # Needed to clone the repository
16
+
12
17
steps :
13
- - name : Checkout code
14
- uses : actions/checkout@v2
18
+ - name : Clone repository
19
+ uses : actions/checkout@v4
20
+
21
+ - name : Install Deno
22
+ uses : denoland/setup-deno@v1
23
+ with :
24
+ deno-version : v1.x
25
+
26
+ - name : Install Node.js
27
+ uses : actions/setup-node@v4
28
+ with :
29
+ node-version : lts/*
30
+
31
+ - name : Install step
32
+ run : " npm install"
15
33
16
- - name : Install Wrangler
17
- run : npm install -g @cloudflare/wrangler
34
+ - name : Build step
35
+ run : " NITRO_PRESET=deno-deploy npm run build "
18
36
19
- - name : Publish to Cloudflare Workers
20
- run : wrangler publish
21
- env :
22
- CF_API_TOKEN : ${{ secrets.CF_API_TOKEN }}
37
+ - name : Upload to Deno Deploy
38
+ uses : denoland/deployctl@v1
39
+ with :
40
+ project : " gusibi-path-meme-web"
41
+ entrypoint : " server/index.ts"
42
+ root : " .output"
You can’t perform that action at this time.
0 commit comments