Skip to content

Commit

Permalink
ci(.github/workflows/storybook): create workflow to always merge `mai…
Browse files Browse the repository at this point in the history
…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
tulup-conner committed Jun 22, 2023
1 parent 55f08db commit 23af072
Show file tree
Hide file tree
Showing 4 changed files with 22 additions and 53 deletions.
52 changes: 0 additions & 52 deletions .github/workflows/build.yaml

This file was deleted.

File renamed without changes.
2 changes: 1 addition & 1 deletion .github/workflows/codeql.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
name: 'CodeQL'
name: CodeQL

on:
push:
Expand Down
21 changes: 21 additions & 0 deletions .github/workflows/storybook.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
name: Deploy Storybook

on:
push:
branches:
- main

jobs:
deploy:
runs-on: ubuntu-latest
steps:
- name: 📥 Checkout
uses: actions/checkout@v2.3.1

- name: 🚀 Merge main -> storybook
uses: devmasx/merge-branch@1.4.0
with:
type: now
from_branch: main
target_branch: storybook
github_token: ${{ github.token }}

0 comments on commit 23af072

Please sign in to comment.