Skip to content

Commit

Permalink
Configure for main branch and finalize workflow steps
Browse files Browse the repository at this point in the history
  • Loading branch information
anaximander committed Mar 12, 2024
1 parent 0679716 commit 48788e7
Showing 1 changed file with 1 addition and 9 deletions.
10 changes: 1 addition & 9 deletions .github/workflows/deploy-github-pages.yml
Original file line number Diff line number Diff line change
@@ -1,34 +1,26 @@
# Workflow name
name: Build and Publish Storybook to GitHub Pages

on:
# Event for the workflow to run on
push:
branches:
- "gh-pages" # Replace with the branch you want to deploy from
- "main"

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

# List of jobs
jobs:
deploy:
environment:
name: github-pages
runs-on: ubuntu-latest
# Job steps
steps:
# Manual Checkout
- uses: actions/checkout@v4

# Set up Node
- uses: actions/setup-node@v4
with:
node-version: "20.x"

#👇 Add Storybook build and deploy to GitHub Pages as a step in the workflow
- uses: bitovi/github-actions-storybook-to-github-pages@v1.0.3
with:
install_command: yarn install # default: npm ci
Expand Down

0 comments on commit 48788e7

Please sign in to comment.