-
-
Notifications
You must be signed in to change notification settings - Fork 436
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
ci(.github/workflows/storybook): create workflow to always merge `mai…
…n` -> `storybook` branch The `storybook` branch will now be a permanent fixture alongside `main`. Its purpose is to deploy to a separate URL on Vercel so we can host the docs and `storybook` output simultaneously, since `next.js` cannot deploy static HTML found in `storybook` output.
- Loading branch information
1 parent
3815fa8
commit b45b024
Showing
4 changed files
with
22 additions
and
53 deletions.
There are no files selected for viewing
This file was deleted.
Oops, something went wrong.
File renamed without changes.
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,4 +1,4 @@ | ||
name: 'CodeQL' | ||
name: CodeQL | ||
|
||
on: | ||
push: | ||
|
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 |
---|---|---|
@@ -0,0 +1,21 @@ | ||
name: Deploy Storybook | ||
|
||
on: | ||
push: | ||
branches: | ||
- 'main' # Ignore if pushed to a specific branch | ||
|
||
jobs: | ||
build-and-deploy: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: 📥 Checkout | ||
uses: actions/[email protected] | ||
|
||
- name: 🚀 Merge main -> storybook | ||
uses: devmasx/[email protected] | ||
with: | ||
type: now | ||
from_branch: main | ||
target_branch: storybook | ||
github_token: ${{ github.token }} |