File tree Expand file tree Collapse file tree 1 file changed +46
-0
lines changed Expand file tree Collapse file tree 1 file changed +46
-0
lines changed Original file line number Diff line number Diff line change
1
+ # . github / workflows / deploy - ipn . yml
2
+ name: Build & Deploy IPN Handler
3
+
4
+ on:
5
+ push:
6
+ paths:
7
+ - "src/ipn-handler.ts"
8
+ - "src/mappings/**"
9
+ - "deno.json"
10
+
11
+ jobs:
12
+ build:
13
+ runs - on : ubuntu - latest
14
+ steps:
15
+ - uses : actions / checkout @v3
16
+
17
+ - name : Setup Deno
18
+ uses: denoland / setup - deno @v1
19
+ with :
20
+ deno - version : v1 . x
21
+
22
+ - name : Cache deps
23
+ uses: actions / cache @v3
24
+ with :
25
+ path: ~ / .c a c h e / deno
26
+ key: $ { { runner . os } } - deno - $ { { hashFiles ( '**/*.ts' ) } }
27
+
28
+ - name : Lint & Test
29
+ run : |
30
+ deno fmt -- check
31
+ deno lint
32
+ deno test -- allow - net -- allow - env
33
+
34
+ deploy:
35
+ needs: build
36
+ runs - on : ubuntu - latest
37
+ steps:
38
+ - uses : actions / checkout @v3
39
+
40
+ - name : Setup Deno
41
+ uses: denoland / setup - deno @v1
42
+ with :
43
+ deno - version : v1 . x
44
+
45
+ - name : Deploy to Deno Deploy
46
+ run: deno deploy -- project = peludo - ipn -- token = $ { { secrets . DENO_DEPLOY_TOKEN } } src / ipn - handler . ts
You can’t perform that action at this time.
0 commit comments