-
Notifications
You must be signed in to change notification settings - Fork 12
42 lines (35 loc) · 1.09 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
name: 🏠 Deploy Deno
on: [workflow_call, workflow_dispatch]
jobs:
deploy:
name: Deploy
runs-on: ubuntu-latest
permissions:
id-token: write # Needed for auth with Deno Deploy
contents: read # Needed to clone the repository
steps:
- uses: actions/checkout@v3
- uses: actions/setup-node@v3
with:
node-version: 20
cache: 'npm'
- uses: actions/cache@v3
id: cache
with:
path: |
node_modules/
apps/vue-docs/node_modules/
libs/storybook-vue2/node_modules/
libs/storybook-vue3/node_modules/
key: ${{ runner.os }}-${{ hashFiles('package-lock.json') }}
- name: Install Dependencies
if: steps.cache.outputs.cache-hit != 'true'
run: npm ci
- name: Build Site
run: npx nx run vue-docs:build --skip-nx-cache
- name: Upload to Deno Deploy
uses: denoland/deployctl@v1
with:
project: vivid
root: dist/apps/docs
entrypoint: https://deno.land/[email protected]/http/file_server.ts