File tree Expand file tree Collapse file tree 1 file changed +53
-0
lines changed
Expand file tree Collapse file tree 1 file changed +53
-0
lines changed Original file line number Diff line number Diff line change 1+ name : Lint site and link check
2+ on :
3+ push :
4+ branches : main
5+ pull_request :
6+ branches : main
7+
8+ jobs :
9+ deploy :
10+ name : Deploy
11+ runs-on : ubuntu-22.04-xl
12+ permissions :
13+ id-token : write # Needed for auth with Deno Deploy
14+ contents : read # Needed to clone the repository
15+
16+ steps :
17+ - name : Clone repository
18+ uses : actions/checkout@v4
19+
20+ - name : Set up Deno
21+ uses : denoland/setup-deno@v2
22+ with :
23+ cache : true
24+
25+ - run : deno fmt --check
26+ - run : deno task test
27+
28+ - name : " Reference: install"
29+ working-directory : " reference_gen"
30+ run : deno install
31+
32+ - name : " Reference: generate types"
33+ working-directory : " reference_gen"
34+ run : deno task types
35+
36+ - name : " Reference: generate docs"
37+ working-directory : " reference_gen"
38+ run : deno task doc
39+
40+ - name : Build
41+ env :
42+ ORAMA_PROJECT_ID : ${{ vars.ORAMA_PROJECT_ID }}
43+ ORAMA_DATASOURCE_ID : ${{ vars.ORAMA_DATASOURCE_ID }}
44+ ORAMA_PRIVATE_API_KEY : ${{ secrets.ORAMA_PRIVATE_API_KEY }}
45+ run : deno task build
46+
47+ - name : Run server
48+ run : deno run --allow-read=. --allow-net --allow-env --lock=deno.lock server.ts &
49+
50+ - name : Link checker
51+ env :
52+ DOCS_ROOT : " http://localhost:8000"
53+ run : deno run --no-lock --allow-net --allow-env .github/workflows/better_link_checker.ts
You can’t perform that action at this time.
0 commit comments