This repository was archived by the owner on Dec 11, 2022. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 0
72 lines (63 loc) · 1.73 KB
/
deno-deploy.yml
File metadata and controls
72 lines (63 loc) · 1.73 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
name: Deploy Bridge
on: [push]
jobs:
test:
name: Test
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: actions/setup-node@v3
with:
node-version: 16
- name: Setup Deno
uses: denoland/setup-deno@v1
with:
deno-version: v1.x
- run: npm install
- run: npm run build
- run: deno task test
build:
name: Build
needs: test
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: actions/setup-node@v3
with:
node-version: 16
- run: npm install
- run: npm run build
deploy:
name: Deploy
needs: test
runs-on: ubuntu-latest
permissions:
id-token: write # Needed for auth with Deno Deploy
contents: read # Needed to clone the repository
steps:
- name: Clone repository
uses: actions/checkout@v3
- uses: actions/setup-node@v3
with:
node-version: 16
- name: Setup Deno
uses: denoland/setup-deno@v1
with:
deno-version: v1.x
- run: npm install
- run: npm run build
# TODO(codebenderhq): figure out how to pull the data from build to deploy
- name: Upload to Deno Deploy
uses: denoland/deployctl@v1
with:
project: #project name
entrypoint: "server/index.js" # TODO(codebenderhq): update
root: src
# - name: Make Request
# id: myRequest
# uses: fjogeleit/http-request-action@v1
# with:
# url: "https://bridge.sauveur.xyz/update"
# customHeaders: '{"key":"123450"}'
# - name: Show Response
# run: echo ${{ steps.myRequest.outputs.response }}