-
Notifications
You must be signed in to change notification settings - Fork 6
54 lines (51 loc) · 1.25 KB
/
Copy pathdeploy.yml
File metadata and controls
54 lines (51 loc) · 1.25 KB
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
52
53
54
name: Build and Deploy
on:
push:
branches:
- master
schedule:
- cron: '0 0 * * 1'
jobs:
build:
runs-on: ubuntu-latest
steps:
- name: Checkout 🛎️
uses: actions/checkout@v5
- name: Use Node.js
uses: actions/setup-node@v5
with:
node-version: current
- name: Install and Build plugin 🔧
run: |
npm install
npm audit --audit-level=low
npm outdated typedoc
npm run build
npm pack
working-directory: ./plugin
- name: Install and Build demo 🔧
run: |
npm install
npm install ../plugin/typedoc-plugin-include-example-3.0.2.tgz
npm audit --audit-level=low
npm run build
cp -r ../plugin/reports ./docs/reports
working-directory: ./demo
- uses: actions/upload-artifact@v4
with:
name: docs
path: demo/docs
deploy:
runs-on: ubuntu-latest
permissions:
contents: write
needs: build
steps:
- uses: actions/checkout@v5
- uses: actions/download-artifact@v4
with:
name: docs
path: docs
- uses: JamesIves/github-pages-deploy-action@v4
with:
folder: docs