Skip to content

Commit 9d0873e

Browse files
authoredJul 17, 2024
docs: deploy v1, v2 and nightly (#6096)
1 parent 9a253cd commit 9d0873e

File tree

84 files changed

+219
-11681
lines changed

Some content is hidden

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

84 files changed

+219
-11681
lines changed
 

‎.github/workflows/docs-stable.yml

+7-2
Original file line numberDiff line numberDiff line change
@@ -28,10 +28,15 @@ jobs:
2828
env:
2929
CYPRESS_INSTALL_BINARY: 0
3030

31+
- name: Get Major Version
32+
run: |
33+
MAJOR_VERSION=$(node -p -e "/^(\d+)\./.exec(require('./lerna.json').version)[1]")
34+
echo "MAJOR_VERSION=${MAJOR_VERSION}" >> "$GITHUB_ENV"
35+
3136
- name: Build Storybook
3237
run: |
3338
yarn build:storybook
34-
yarn build:storybook-sitemap
39+
yarn build:storybook-sitemap --basePath "v${{ env.MAJOR_VERSION }}"
3540
env:
3641
NODE_OPTIONS: '--max-old-space-size=4096'
3742

@@ -40,5 +45,5 @@ jobs:
4045
with:
4146
branch: gh-pages # The branch the action should deploy to.
4247
folder: .out # The folder the action should deploy.
48+
target-folder: v${{ env.MAJOR_VERSION }}
4349
clean: true
44-
clean-exclude: 'main'

‎.github/workflows/main.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -131,5 +131,5 @@ jobs:
131131
with:
132132
branch: gh-pages # The branch the action should deploy to.
133133
folder: .out # The folder the action should deploy.
134-
target-folder: main
134+
target-folder: nightly
135135
clean: true

0 commit comments

Comments
 (0)
Please sign in to comment.