Skip to content

Commit

Permalink
Storybookをホスティングするためのworkflowを追加 (#27)
Browse files Browse the repository at this point in the history
  • Loading branch information
fumink7 authored Jun 4, 2024
1 parent ce7099e commit 3200d48
Showing 1 changed file with 41 additions and 0 deletions.
41 changes: 41 additions & 0 deletions .github/workflows/deploy-storybook.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,41 @@
name: Deploy Storybook to GitHub Pages

on:
push:
branches:
- main

jobs:
build:
runs-on: ubuntu-latest
steps:
- name: Chekcout code
uses: actions/checkout@v4
- name: Setup Node.js
uses: actions/setup-node@v4
with:
node-version-file: ./package.json
- name: Install Node Dependencies
run: npm ci
- name: Build packages
run: npm run compile
- name: Upload Documents
uses: actions/upload-pages-artifact@v3
with:
path: ./dist

# Deploy the artifact to GitHub pages.
# This is a separate job so that only actions/deploy-pages has the necessary permissions.
deploy:
needs: build
runs-on: ubuntu-latest
permissions:
pages: write
id-token: write
environment:
name: github-pages
url: ${{ steps.deployment.outputs.page_url }}
steps:
- id: deployment
uses: actions/deploy-pages@v4

0 comments on commit 3200d48

Please sign in to comment.