-
-
Notifications
You must be signed in to change notification settings - Fork 2
38 lines (36 loc) · 855 Bytes
/
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
name: Deploy
on: [push, pull_request]
jobs:
deploy:
name: Deploy
runs-on: ubuntu-latest
strategy:
fail-fast: false
matrix:
language: ["javascript"]
node: ["18.x"]
permissions:
id-token: write
contents: read
steps:
- name: 🧱 Checkout repository
uses: actions/checkout@v4
- name: 🔩 Setup PNPM
uses: pnpm/action-setup@v2
with:
version: latest
- name: 🔩 Setup Node ${{ matrix.node }}
uses: actions/setup-node@v4
with:
node-version: ${{ matrix.node }}
cache: "pnpm"
- name: 🚀 Install dependencies
run: pnpm install
- name: 🚀 Build project
run: pnpm run build
- name: 🚀 Upload to Deno Deploy
uses: denoland/deployctl@v1
with:
project: ${{ vars.DENO_DEPLOY_PROJECT }}
entrypoint: "server/entry.mjs"
root: "dist"