-
Notifications
You must be signed in to change notification settings - Fork 0
47 lines (40 loc) · 1.08 KB
/
docs.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: Generate and Publish Docs
on:
push:
branches:
- main
- 35_fix_docs
jobs:
generate-docs:
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/[email protected]
- name: Setup Node.js
uses: actions/[email protected]
with:
node-version: '21'
- name: Install dependencies
run: npm install
- name: Generate TypeDocs
run: npm run docs && ls -a docs
- name: Archive artifact
shell: sh
run: |
echo ::group::Archive artifact
tar \
--dereference --hard-dereference \
--create \
--file "$RUNNER_TEMP/artifact.tar" \
--exclude=.git \
--exclude=.github \
-C ./docs/ . # Include all files in the 'docs' directory
echo ::endgroup::
- name: Upload artifact
id: upload-artifact
uses: actions/upload-artifact@v4
with:
name: github-pages
path: docs/artifact.tar
retention-days: "1"
if-no-files-found: error