Skip to content

Commit 6ca45bd

Browse files
committed
ci: deploy docs workflow
1 parent f37bf63 commit 6ca45bd

File tree

1 file changed

+21
-2
lines changed

1 file changed

+21
-2
lines changed

.github/workflows/ci-cd.yml

Lines changed: 21 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -63,7 +63,7 @@ jobs:
6363
- name: Run unit tests
6464
run: pnpm run test --maxWorkers=2 --coverage
6565

66-
docs:
66+
build-docs:
6767
name: Build and deploy docs
6868
runs-on: ubuntu-latest
6969
needs: build-packages
@@ -79,7 +79,26 @@ jobs:
7979
- name: Build docs
8080
run: pnpm run build:docs
8181

82-
# TODO: publish docs
82+
- name: Upload docs artifact
83+
uses: actions/upload-pages-artifact@v3
84+
with:
85+
path: docs/doc_build
86+
87+
deploy-docs:
88+
permissions:
89+
contents: read
90+
pages: write
91+
id-token: write
92+
environment:
93+
name: github-pages
94+
url: ${{ steps.deployment.outputs.page_url }}
95+
needs: build-docs
96+
runs-on: ubuntu-latest
97+
name: Deploy docs
98+
steps:
99+
- name: Deploy to GitHub Pages
100+
id: deployment
101+
uses: actions/deploy-pages@v4
83102

84103
# TODO: enable building demo apps
85104
# build-android:

0 commit comments

Comments
 (0)