-
Notifications
You must be signed in to change notification settings - Fork 21
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[HFRONT-1135]: upgrade gh pages (#583)
* fix(gh-pages): remove redundant npm package * Patch update * ci(gh-pages): fix deployment of storybook to github pages
- Loading branch information
1 parent
737ee54
commit 2514f3b
Showing
3 changed files
with
31 additions
and
110 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 |
---|---|---|
|
@@ -4,8 +4,23 @@ on: | |
push: | ||
branches: | ||
- dev | ||
|
||
permissions: | ||
contents: read | ||
pages: write | ||
id-token: write | ||
|
||
# Allow only one concurrent deployment, skipping runs queued between the run in-progress and latest queued. | ||
# However, do NOT cancel in-progress runs as we want to allow these production deployments to complete. | ||
concurrency: | ||
group: 'pages' | ||
cancel-in-progress: false | ||
|
||
jobs: | ||
build-and-deploy-storybook: | ||
environment: | ||
name: github-pages | ||
url: ${{ steps.deployment.outputs.page_url }} | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: Checkout 🗒️ | ||
|
@@ -40,16 +55,16 @@ jobs: | |
- name: Install dependencies | ||
run: pnpm install | ||
|
||
- name: Build Quartz | ||
run: | | ||
pnpm build | ||
- run: NODE_OPTIONS=--max_old_space_size=4096 pnpm run build-storybook | ||
|
||
- name: Build StoryBook🤖 | ||
run: | | ||
NODE_OPTIONS=--max_old_space_size=4096 pnpm run build-storybook | ||
- name: Setup Pages | ||
uses: actions/configure-pages@v4 | ||
|
||
- name: Deploy 🚀 | ||
uses: JamesIves/github-pages-[email protected] | ||
- name: Upload artifact | ||
uses: actions/upload-pages-artifact@v3 | ||
with: | ||
branch: gh-pages | ||
folder: storybook-static | ||
path: './storybook-static' | ||
|
||
- name: Deploy to GitHub Pages 🚀 | ||
id: deployment | ||
uses: actions/deploy-pages@v4 |
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
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.