-
Notifications
You must be signed in to change notification settings - Fork 4
47 lines (37 loc) · 1008 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
39
40
41
42
43
44
45
46
47
name: Deploy
on:
push:
branches: [main]
jobs:
deploy:
name: Deploy
runs-on: ubuntu-latest
permissions:
id-token: write
contents: read
env:
GH_REPO: tswhy-test
GH_TOKEN: github_pat_token
ALGOLIA_APP_ID: ${{ secrets.ALGOLIA_APP_ID }}
ALGOLIA_ADMIN_KEY: ${{ secrets.ALGOLIA_ADMIN_KEY }}
DENO_KV_ACCESS_TOKEN: ${{ secrets.DENO_KV_ACCESS_TOKEN }}
steps:
- name: clone repository
uses: actions/checkout@v4
- name: install deno
uses: denoland/setup-deno@v1
with:
deno-version: v1.x
- name: build step
run: "deno task build"
- name: update to Deno Deploy
uses: denoland/deployctl@v1
with:
project: "tswhy"
entrypoint: "./main.ts"
- name: upload KV store
run: "deno task cli docs -p"
- name: build local KV store
run: "deno task cli docs"
- name: upload to Algolia
run: "deno task cli upload"