Skip to content

Commit edcac73

Browse files
author
Kostadinos J Kyprianos
authored
Create src/ipn-handler.ts
1 parent 9d8c8a4 commit edcac73

File tree

1 file changed

+46
-0
lines changed

1 file changed

+46
-0
lines changed

src/src/ipn-handler.ts

Lines changed: 46 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,46 @@
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: ~/.cache/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

0 commit comments

Comments
 (0)