Skip to content

Commit

Permalink
cd: deploy storybook to github pages
Browse files Browse the repository at this point in the history
  • Loading branch information
vitorxfs committed Oct 28, 2023
1 parent 21b487d commit 053a352
Showing 1 changed file with 34 additions and 0 deletions.
34 changes: 34 additions & 0 deletions .github/workflows/deploy-storybook.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,34 @@
name: Deploy Storybook to Github Pages

on:
push:
branches:
- "main" # change to the branch you wish to deploy from

permissions:
contents: read
pages: write
id-token: write

jobs:
deploy:
runs-on: ubuntu-latest

strategy:
matrix:
node-version: [18.x]
# See supported Node.js release schedule at https://nodejs.org/en/about/releases/

steps:
- uses: actions/checkout@v3
- uses: pnpm/action-setup@v2
with:
version: 8
- name: Use Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v3
with:
node-version: ${{ matrix.node-version }}
cache: 'pnpm'
- name: Deploy
id: build-publish
uses: bitovi/[email protected]

0 comments on commit 053a352

Please sign in to comment.