Skip to content

Commit 375a6e7

Browse files
committed
ci: create workflow to release docs independently if needed
1 parent f8e806c commit 375a6e7

File tree

1 file changed

+41
-0
lines changed

1 file changed

+41
-0
lines changed

.github/workflows/release-docs.yml

Lines changed: 41 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,41 @@
1+
name: Release NPM packages
2+
3+
env:
4+
NODE_OPTIONS: --max-old-space-size=6144
5+
NX_MAX_PARALLEL: 2
6+
7+
on:
8+
workflow_dispatch:
9+
10+
jobs:
11+
deploy-docs:
12+
name: '[Merge] Deploy docs to GitHub Pages'
13+
needs: release
14+
runs-on: ubuntu-latest
15+
permissions:
16+
contents: read
17+
actions: read
18+
pages: write
19+
id-token: write
20+
environment:
21+
name: github-pages
22+
url: ${{ steps.deployment.outputs.page_url }}
23+
steps:
24+
- name: Check out the source code
25+
uses: actions/checkout@v4
26+
with:
27+
fetch-depth: 0
28+
- name: Setup
29+
uses: ./.github/actions/setup
30+
# Uses the cache generated in the distributed step
31+
- name: Build docs
32+
run: pnpm exec nx build docs-lumberjack-docs-app
33+
- name: Set up GitHub Pages
34+
uses: actions/configure-pages@v4
35+
- name: Upload docs to GitHub Pages
36+
uses: actions/upload-pages-artifact@v3
37+
with:
38+
path: dist/packages/docs/lumberjack-docs-app/
39+
- name: Deploy docs to GitHub Pages
40+
id: deployment
41+
uses: actions/deploy-pages@v4

0 commit comments

Comments
 (0)