Skip to content

[Image] Do not apply custom alignment float left/right for mobile (#3… #76

[Image] Do not apply custom alignment float left/right for mobile (#3…

[Image] Do not apply custom alignment float left/right for mobile (#3… #76

Workflow file for this run

name: Deploy Perseus Storybook to GitHub Pages
on:
push:
branches:
- main
# Allows us to run this workflow manually from the Actions tab
workflow_dispatch:
# This workflow will deploy the Storybook static files to GitHub Pages.
jobs:
build:
name: Build Storybook
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@08c6903cd8c0fde910a37f88322edcfb5dd907a8 # v5.0.0
with:
ssh-key: ${{ secrets.SSH_PRIVATE_KEY }}
fetch-depth: 0
- name: Install & cache node_modules
uses: ./.github/actions/shared-node-cache
with:
node-version: 20.x
- name: Build Storybook
# Generate a static version of storybook inside "storybook-static/"
run: pnpm build-storybook
- name: Upload Storybook artifact
uses: actions/upload-pages-artifact@7b1f4a764d45c48632c6b24a0339c27f5614fb0b # v4.0.0
with:
# Upload the generated static files
path: "./storybook-static"
deploy:
name: Deploy Storybook to GitHub Pages
needs: build
runs-on: ubuntu-latest
# Grant GITHUB_TOKEN the permissions required to make a Pages deployment
permissions:
pages: write # to deploy to Pages
id-token: write # to verify the deployment originates from an appropriate source
# Deploy to the github-pages environment
environment:
name: github-pages
url: ${{ steps.deployment.outputs.page_url }}
steps:
- name: Setup Pages
uses: actions/configure-pages@983d7736d9b0ae728b81ab479565c72886d7745b # v5.0.0
- name: Deploy to GitHub Pages
id: deployment
uses: actions/deploy-pages@d6db90164ac5ed86f2b6aed7e0febac5b3c0c03e # v4.0.5
- run: echo ${{ steps.deployment.outputs.page_url }}