-
Notifications
You must be signed in to change notification settings - Fork 334
64 lines (54 loc) · 1.61 KB
/
deploy-deno.yml
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
name: Deploy into deno deploy
on:
push:
branches:
- master
paths:
- "client/web/**"
- "client/shared/**"
- "client/packages/design/**"
workflow_dispatch:
jobs:
deploy:
name: Deploy deno
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
- name: Install Deno
uses: denoland/setup-deno@main
with:
deno-version: 1.18.2
- name: Install Node.js
uses: actions/setup-node@v3
with:
node-version: lts/*
- name: Cache pnpm modules
uses: actions/cache@v2
with:
path: ~/.pnpm-store
key: ${{ runner.os }}-${{ hashFiles('**/pnpm-lock.yaml') }}
restore-keys: |
${{ runner.os }}-
- uses: pnpm/[email protected]
with:
version: latest
run_install: false
- name: Install packages
run: pnpm install --frozen-lockfile
- name: Build step
run: cd client/web && pnpm build
env:
SERVICE_URL: https://tailchat-nightly.moonrailgun.com
- name: Copy Deno Entry
run: cd client/web && cp ./scripts/deno-static-entry.ts ./dist/deno-static-entry.ts
- name: Upload to Deno Deploy
uses: denoland/deployctl@v1
with:
project: "tailchat-nightly"
# entrypoint: https://deno.land/[email protected]/http/file_server.ts
entrypoint: deno-static-entry.ts
root: "./client/web/dist"