Skip to content

Commit

Permalink
Update deploy-github-pages.yaml
Browse files Browse the repository at this point in the history
  • Loading branch information
doubleedesign authored Apr 14, 2024
1 parent d8f9290 commit ca82d27
Showing 1 changed file with 21 additions and 11 deletions.
32 changes: 21 additions & 11 deletions .github/workflows/deploy-github-pages.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -11,15 +11,25 @@ permissions:
id-token: write

jobs:
deploy:
environment:
name: github-pages
url: ${{ steps.build-publish.outputs.page_url }}
runs-on: ubuntu-latest
build-deploy:
runs-on: ubuntu-latest

steps:
- id: build-publish
uses: bitovi/[email protected]
with:
install_command: npm install
build_command: npm run build-storybook
path: storybook-static
- uses: actions/checkout@v3

- name: Setup Node.js
uses: actions/setup-node@v3
with:
node-version: '20'

- name: Install Dependencies
run: npm install

- name: Build Storybook
run: npm run build-storybook -- -o ./storybook-static

- name: Deploy to GitHub Pages
uses: peaceiris/actions-gh-pages@v3
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
publish_dir: ./storybook-static

0 comments on commit ca82d27

Please sign in to comment.