Skip to content

Fix build

Fix build #362

name: Deploy storybook to github pages
on:
push:
branches:
- main
permissions:
contents: read
pages: write
id-token: write
env:
IMAGE: ghcr.io/${{ github.repository }}:${{ github.sha }}
jobs:
build:
runs-on: ubuntu-latest
permissions:
contents: read
id-token: write
packages: write
steps:
- uses: actions/checkout@v3
- name: Setup Pages
uses: actions/configure-pages@v3
- uses: oven-sh/setup-bun@v1
with:
bun-version: '1.0.21'
- name: Install dependencies
run: bun install --immutable
env:
NODE_AUTH_TOKEN: ${{ secrets.READER_TOKEN }}
- name: Build Storybook
run: bun run build-storybook
- name: Upload artifact
uses: actions/upload-pages-artifact@v2
with:
path: ./storybook-static
deploy:
runs-on: ubuntu-latest
needs: build
steps:
- name: Deploy to GitHub Pages
id: deployment
uses: actions/deploy-pages@v2