Skip to content

Commit cb74937

Browse files
fix: api doc versioning workflow (#1311)
1 parent 69a9107 commit cb74937

File tree

146 files changed

+38
-106436
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

146 files changed

+38
-106436
lines changed

.github/workflows/publish-docs.yml

Lines changed: 15 additions & 37 deletions
Original file line numberDiff line numberDiff line change
@@ -15,10 +15,13 @@ jobs:
1515
with:
1616
ref: gh-pages
1717

18-
- name: tar the existing docs
18+
- name: remove all symbolic links from root if present
1919
run: |
20-
mkdir -p ./docs
21-
tar -cvf documentation.tar ./docs
20+
find . -maxdepth 1 -type l -delete
21+
22+
- name: tar the existing docs from root
23+
run: |
24+
tar -cvf documentation.tar
2225
2326
- name: create a document artifact
2427
uses: actions/upload-artifact@v4
@@ -33,51 +36,26 @@ jobs:
3336
- name: Checkout src
3437
uses: actions/checkout@v5
3538

36-
- run: mkdir -p ./docs
3739
- name: Download the existing documents artifact
3840
uses: actions/download-artifact@v5
3941
with:
4042
name: documentation
43+
- run: rm -rf ./docs # delete previous docs folder present
44+
- run: mkdir ./docs # create an empty docs folder
4145
- run: tar -xf documentation.tar -C ./docs
46+
- run: rm -f documentation.tar
4247

4348
- name: Setup
4449
uses: ./.github/actions/setup
4550

4651
- name: Build documents
4752
run: yarn docs #set up 'docs' build script in your package.json
48-
49-
- name: Run cleanup and manage document versions
50-
run: node scripts/manage-doc-versions.js
51-
52-
- name: tar the new docs
53-
run: tar -cvf newdocumentation.tar ./docs
5453

55-
- name: create a new document artifact
56-
uses: actions/upload-artifact@v4
57-
with:
58-
name: newdocumentation
59-
path: newdocumentation.tar
60-
61-
commit: # commit the old and new merged documents to gh-pages/docs
62-
needs: build
63-
runs-on: ubuntu-latest
64-
steps:
65-
- name: checkout the gh-pages repo
66-
uses: actions/checkout@v5
67-
with:
68-
ref: gh-pages
54+
- name: Remove all the symbolic links from docs folder
55+
run: find ./docs -type l -delete
6956

70-
- run: mkdir -p ./docs
71-
- name: Download the new documents artifact
72-
uses: actions/download-artifact@v5
73-
with:
74-
name: newdocumentation
75-
- run: tar -xf newdocumentation.tar -C ./docs
57+
- name: Run cleanup and manage document versions
58+
run: node scripts/manage-doc-versions.js
7659

77-
- name: commit
78-
run: |
79-
git config --global user.email "[email protected]"
80-
git config --global user.name "Continuous Integration"
81-
git add .
82-
git commit -m "CI updated the documentation"
83-
git push
60+
- name: Deploy to github pages using gh-pages
61+
run: npx gh-pages -d docs

.gitignore

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -94,4 +94,5 @@ android/generated
9494
# Other
9595
dist/
9696
out/
97-
coverage/
97+
coverage/
98+
docs/

docs/.typedoc-plugin-versions

Lines changed: 0 additions & 1 deletion
This file was deleted.

docs/.version

Lines changed: 0 additions & 1 deletion
This file was deleted.

docs/dev/assets/hierarchy.js

Lines changed: 0 additions & 2 deletions
This file was deleted.

docs/dev/assets/highlight.css

Lines changed: 0 additions & 173 deletions
This file was deleted.

0 commit comments

Comments
 (0)