Update workflows and scripts
Signed-off-by: Johan Haals <johan.haals@gmail.com>
This commit is contained in:
@@ -7,6 +7,5 @@
|
||||
**/.git/**
|
||||
**/public/**
|
||||
**/microsite/**
|
||||
**/microsite-next/**
|
||||
**/templates/**
|
||||
**/sample-templates/**
|
||||
|
||||
@@ -33,7 +33,7 @@ jobs:
|
||||
run: yarn install --immutable
|
||||
- name: microsite yarn install
|
||||
run: yarn install --immutable
|
||||
working-directory: microsite-next
|
||||
working-directory: microsite
|
||||
- name: storybook yarn install
|
||||
run: yarn install --immutable
|
||||
working-directory: storybook
|
||||
@@ -43,20 +43,20 @@ jobs:
|
||||
|
||||
- name: build microsite
|
||||
run: yarn build
|
||||
working-directory: microsite-next
|
||||
working-directory: microsite
|
||||
|
||||
- name: build storybook
|
||||
run: yarn build-storybook
|
||||
working-directory: storybook
|
||||
|
||||
- name: move storybook dist into microsite
|
||||
run: mv storybook/dist/ microsite-next/build/storybook
|
||||
run: mv storybook/dist/ microsite/build/storybook
|
||||
|
||||
- name: Check the build output
|
||||
run: ls microsite-next/build && ls microsite-next/build/storybook
|
||||
run: ls microsite/build && ls microsite/build/storybook
|
||||
|
||||
- name: Deploy both microsite and storybook to gh-pages
|
||||
uses: JamesIves/github-pages-deploy-action@v4.4.1
|
||||
with:
|
||||
branch: gh-pages
|
||||
folder: microsite-next/build
|
||||
folder: microsite/build
|
||||
|
||||
+5
-5
@@ -3,7 +3,7 @@ on:
|
||||
pull_request:
|
||||
paths:
|
||||
- '.github/workflows/verify_microsite-next.yml'
|
||||
- 'microsite-next/**'
|
||||
- 'microsite/**'
|
||||
- 'docs/**'
|
||||
|
||||
jobs:
|
||||
@@ -34,7 +34,7 @@ jobs:
|
||||
|
||||
- name: yarn install
|
||||
run: yarn install --immutable
|
||||
working-directory: microsite-next
|
||||
working-directory: microsite
|
||||
|
||||
- name: build API reference
|
||||
run: yarn build:api-docs
|
||||
@@ -44,8 +44,8 @@ jobs:
|
||||
|
||||
- name: prettier
|
||||
run: yarn prettier:check
|
||||
working-directory: microsite-next
|
||||
working-directory: microsite
|
||||
|
||||
- name: build microsite-next
|
||||
- name: build microsite
|
||||
run: yarn build
|
||||
working-directory: microsite-next
|
||||
working-directory: microsite
|
||||
@@ -36,7 +36,7 @@ async function findLockFiles() {
|
||||
|
||||
if (!files.length) {
|
||||
// List all lock files that are in the root or in an immediate subdirectory
|
||||
files = ['yarn.lock', 'cypress/yarn.lock', 'microsite-next/yarn.lock'];
|
||||
files = ['yarn.lock', 'cypress/yarn.lock', 'microsite/yarn.lock'];
|
||||
}
|
||||
|
||||
return files.map(file => ({
|
||||
|
||||
Reference in New Issue
Block a user