-
Notifications
You must be signed in to change notification settings - Fork 2
48 lines (39 loc) · 1.24 KB
/
deploy.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
name: Deploy
on: [push]
jobs:
deploy:
name: Deploy
runs-on: ubuntu-latest
defaults:
run:
working-directory: ./astro/poc-deno-fs
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: Setup Node.js
uses: actions/setup-node@v3
with:
node-version: 16
- name: Setup pnpm
uses: pnpm/action-setup@v2
with:
version: 6.0.2
# Not using npm? Change `npm ci` to `yarn install` or `pnpm i`
- name: Install dependencies
run: pnpm i
# - name: Setup database and prisma client for deno
# run: pnpm prisma db push
# Not using npm? Change `npm run build` to `yarn build` or `pnpm run build`
- name: Build Astro
run: pnpm run build
- name: Print files from CWD
run: ls -lah
- name: Upload to Deno Deploy
uses: denoland/deployctl@v1
with:
project: fs-deno-poc # TODO: replace with Deno Deploy project name
entrypoint: server/entry.mjs
root: astro/poc-deno-fs/dist