-
Notifications
You must be signed in to change notification settings - Fork 4
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix: update deploy docs for storybook 7.x
- Loading branch information
1 parent
586a0cb
commit 010d91b
Showing
1 changed file
with
19 additions
and
15 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,29 +1,33 @@ | ||
name: Deploy Docs | ||
name: Deploy Docs to GH Pages | ||
|
||
on: | ||
push: | ||
branches: | ||
- main | ||
- aholloway/x-fix-gh-pages-deploy | ||
|
||
jobs: | ||
deploy_docs: | ||
deploy: | ||
runs-on: ubuntu-latest | ||
|
||
steps: | ||
- uses: actions/checkout@v3 | ||
- name: Setup node 😻 | ||
uses: actions/setup-node@v3 | ||
with: | ||
- name: Checkout code | ||
uses: actions/checkout@v3 | ||
|
||
- name: Setup Node | ||
uses: actions/setup-node@v3 | ||
with: | ||
node-version-file: '.node-version' | ||
cache: 'yarn' | ||
|
||
- name: Install Dependencies ⬆️ | ||
run: yarn install --immutable | ||
- name: Install Dependencies | ||
run: yarn install --immutable | ||
|
||
- name: Build Dist 🔧 | ||
run: yarn run build | ||
- name: Build Dist | ||
run: yarn build | ||
|
||
- name: Deploy Storybook Docs 🚀 | ||
run: yarn run deploy:docs | ||
env: | ||
GH_TOKEN: '${{ github.actor }}:${{ secrets.GITHUB_TOKEN }}' | ||
- name: Build and deploy Storybook | ||
uses: peaceiris/actions-gh-pages@v3 | ||
with: | ||
publish_dir: ./ | ||
env: | ||
GH_TOKEN: '${{ github.actor }}:${{ secrets.GITHUB_TOKEN }}' |