Skip to content

Commit e4f9fa3

Browse files
committed
Add publish workflow
1 parent a3d4b30 commit e4f9fa3

File tree

1 file changed

+49
-0
lines changed

1 file changed

+49
-0
lines changed

.github/workflows/publish-docs.yml

Lines changed: 49 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,49 @@
1+
name: Build and publish docs
2+
3+
on:
4+
push:
5+
branches: ['main']
6+
tags: '*'
7+
8+
workflow_dispatch:
9+
10+
permissions:
11+
contents: read
12+
pages: write
13+
id-token: write
14+
15+
concurrency:
16+
group: 'pages'
17+
cancel-in-progress: false
18+
19+
jobs:
20+
deploy:
21+
environment:
22+
name: github-pages
23+
url: ${{ steps.deployment.outputs.page_url }}
24+
runs-on: ubuntu-latest
25+
steps:
26+
- uses: actions/checkout@v4
27+
with:
28+
filter: tree:0
29+
fetch-depth: 0
30+
31+
- name: Setup Pages
32+
uses: actions/configure-pages@v5
33+
34+
- uses: ./.github/actions/install-dependencies
35+
name: Install dependencies
36+
37+
- run: pnpm exec nx run-many -t build --projects=tag:lib
38+
39+
- name: Build docs
40+
run: pnpm ci:docs
41+
42+
- name: Upload artifact
43+
uses: actions/upload-pages-artifact@v3
44+
with:
45+
path: 'docs/'
46+
47+
- name: Deploy to GitHub Pages
48+
id: deployment
49+
uses: actions/deploy-pages@v4

0 commit comments

Comments
 (0)