-
Notifications
You must be signed in to change notification settings - Fork 1
46 lines (39 loc) · 963 Bytes
/
Copy pathdeploy-demo.yml
File metadata and controls
46 lines (39 loc) · 963 Bytes
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
name: Deploy Demo (Deno Deploy)
on:
push:
branches: [main]
paths:
- "docs/**"
- ".github/workflows/deploy-demo.yml"
release:
types: [published]
workflow_dispatch:
inputs:
ref:
description: "Git ref to deploy (branch, tag, or SHA)"
required: false
default: "main"
type: string
permissions:
contents: read
concurrency:
group: deploy-demo
cancel-in-progress: false
jobs:
deploy:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v7
with:
ref: ${{ inputs.ref || github.event.release.tag_name || github.ref }}
- name: Setup Deno
uses: denoland/setup-deno@v2
with:
deno-version: v2.x
- name: Check
run: deno task check
- name: Deploy
env:
DENO_DEPLOY_TOKEN: ${{ secrets.DENO_DEPLOY_TOKEN }}
run: deno deploy --config docs/deno.json --prod docs