-
Notifications
You must be signed in to change notification settings - Fork 28
51 lines (41 loc) · 1.03 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
49
50
51
name: Deploy
on:
push:
branches: dangvanthanh/hono
pull_request:
branches: dangvanthanh/hono
jobs:
deploy:
runs-on: ubuntu-latest
permissions:
id-token: write
contents: read
steps:
- name: Clone repository
uses: actions/checkout@v3
- name: Cache .deno/
id: cache-deno
uses: actions/cache@v3
with:
path: .deno/
key: ${{ runner.os }}-deno
- name: Cache node_modules/
id: cache-node-modules
uses: actions/cache@v3
with:
path: node_modules/
key: ${{ runner.os }}-node-modules
- name: Install Deno
uses: denoland/setup-deno@v1
with:
deno-version: v1.x
- name: Build production
env:
DENO_DIR: .deno
run: deno task build
- name: Deploy to Deno Deploy
uses: denoland/deployctl@v1
with:
project: vue-shopping-cart
root: dist
entrypoint: https://deno.land/[email protected]/http/file_server.ts