-
-
Notifications
You must be signed in to change notification settings - Fork 10.1k
Docs: Remove external action from Github pages documentation #32974
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
Merged
Changes from all commits
Commits
Show all changes
7 commits
Select commit
Hold shift + click to select a range
cac2ba8
Remove external action from Github pages documentation
sekeidesign 77feb01
Fix typos and improve comments in GitHub Action
sekeidesign b562180
Merge branch 'next' into patch-1
sekeidesign 7ec05ad
Merge branch 'next' into patch-1
jonniebigodes eb8ee2c
Merge branch 'storybookjs:next' into patch-1
sekeidesign a3cfa0b
Remove env variables
sekeidesign 17f09da
Merge branch 'next' into patch-1
jonniebigodes File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or 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,37 +1,45 @@ | ||
| ```yml filename=".github/workflows/deploy-github-pages.yml" renderer="common" language="js" | ||
| # Workflow name | ||
| name: Build and Publish Storybook to GitHub Pages | ||
|
|
||
| on: | ||
| # Event for the workflow to run on | ||
| push: | ||
| branches: | ||
| - 'your-branch-name' # Replace with the branch you want to deploy from | ||
|
|
||
| - "your-branch-name" # Use specific branch name | ||
| permissions: | ||
| contents: read | ||
| pages: write | ||
| id-token: write | ||
|
|
||
| # List of jobs | ||
| concurrency: | ||
| group: "pages" | ||
| cancel-in-progress: false | ||
| jobs: | ||
| deploy: | ||
| runs-on: ubuntu-latest | ||
| # Job steps | ||
| environment: | ||
| name: github-pages | ||
| url: ${{ steps.deploy.outputs.page_url }} | ||
| steps: | ||
| # Manual Checkout | ||
| - uses: actions/checkout@v4 | ||
| - name: Checkout | ||
| uses: actions/checkout@v4 | ||
| with: | ||
| fetch-depth: 0 | ||
| # Set up Node | ||
| - uses: actions/setup-node@v4 | ||
| - name: Setup Node | ||
| uses: actions/setup-node@v4 | ||
| with: | ||
| node-version: '20' | ||
| #👇 Add Storybook build and deploy to GitHub Pages as a step in the workflow | ||
| - uses: bitovi/github-actions-storybook-to-github-pages@v1.0.3 | ||
| node-version: "20" | ||
| cache: "npm" # Adjust caching strategy and configuration if using other package managers | ||
| - name: Install dependencies | ||
| run: npm ci # Replace with appropriate command if using other package managers | ||
| - name: Build Storybook | ||
| run: npm run build-storybook | ||
| # Upload pages artifact | ||
| - name: Upload Pages artifact | ||
| uses: actions/upload-pages-artifact@v3 | ||
| with: | ||
| install_command: yarn install # default: npm ci | ||
| build_command: yarn build-storybook # default: npm run build-storybook | ||
| path: storybook-static # default: dist/storybook | ||
| checkout: false # default: true | ||
| path: "storybook-static" | ||
| # Deploy to Github Pages | ||
| - id: deploy | ||
| name: Deploy to GitHub Pages | ||
| uses: actions/deploy-pages@v4 | ||
| with: | ||
| token: ${{ github.token }} | ||
| ``` |
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.