File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 11name : Deploy
2-
3- on : [push, pull_request]
2+ on :
3+ push :
4+ branches : main
5+ pull_request :
6+ branches : main
47
58jobs :
6- deploy :
7- name : Deploy
8- runs-on : ubuntu-latest
9- strategy :
10- fail-fast : false
11- matrix :
12- node : ["lts/*"]
13- permissions :
14- id-token : write
15- contents : read
16- steps :
17- - name : 🧱 Checkout repository
18- uses : actions/checkout@v4
19- - name : 🔩 Setup PNPM
20- uses : pnpm/action-setup@v4
21- with :
22- standalone : true
23- - name : 🔩 Setup Node ${{ matrix.node }}
24- uses : actions/setup-node@v4
25- with :
26- node-version : ${{ matrix.node }}
27- cache : " pnpm"
28- - name : 🚀 Install dependencies
29- run : pnpm install
30- - name : 🚀 Build project
31- run : pnpm run build
32- - name : 🚀 Upload to Deno Deploy
33- uses : denoland/deployctl@v1
34- with :
35- project : ${{ vars.DENO_DEPLOY_PROJECT }}
36- entrypoint : dist/server/entry.mjs
9+ deploy :
10+ name : Deploy
11+ runs-on : ubuntu-latest
12+
13+ permissions :
14+ id-token : write # Needed for auth with Deno Deploy
15+ contents : read # Needed to clone the repository
16+
17+ steps :
18+ - name : Clone repository
19+ uses : actions/checkout@v4
20+
21+ - name : Install Deno
22+ uses : denoland/setup-deno@v2
23+ with :
24+ deno-version : v2.x
25+
26+ - name : Install Node.js
27+ uses : actions/setup-node@v4
28+ with :
29+ node-version : lts/*
30+
31+ - name : Install step
32+ run : " npm install"
33+
34+ - name : Build step
35+ run : " npm run build"
36+
37+ - name : Upload to Deno Deploy
38+ uses : denoland/deployctl@v1
39+ with :
40+ project : " profile-views"
41+ entrypoint : " server/entry.mjs"
42+ root : " dist"
43+
44+
You can’t perform that action at this time.
0 commit comments