Skip to content

Commit

Permalink
fix: deployed url
Browse files Browse the repository at this point in the history
  • Loading branch information
lydiahjchung committed Aug 11, 2024
1 parent c1c84ec commit 712b872
Showing 1 changed file with 9 additions and 35 deletions.
44 changes: 9 additions & 35 deletions .github/workflows/deploy-storybook.yml
Original file line number Diff line number Diff line change
Expand Up @@ -35,44 +35,18 @@ jobs:
uses: ./.github/actions/setup-node-dependencies

- name: Build Storybook
run: pnpm run build-storybook
run: pnpm build-storybook

# - name: Upload artifact
# uses: actions/upload-artifact@v4
# with:
# name: github-pages
# path: storybook-static
# if-no-files-found: error
- name: Upload Storybook artifact
uses: actions/upload-pages-artifact@v2
with:
path: storybook-static

deploy:
runs-on: ubuntu-latest
needs: build

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

steps:
- name: Setup Node.js and Dependencies
uses: ./.github/actions/setup-node-dependencies

- name: Setup Pages
uses: actions/configure-pages@v3

# - name: Download artifact
# uses: actions/download-artifact@v4
# with:
# name: github-pages
# path: ./storybook-static

- name: Publish to GitHub Pages
id: build-publish
uses: bitovi/[email protected]
with:
path: ./storybook-static
install_command: pnpm install
build_command: pnpm run build-storybook

- name: Output URL
if: success()
run: echo "Deployed to ${{ steps.build-publish.outputs.url }}"
- name: Deploy to GitHub Pages
id: deployment
uses: actions/deploy-pages@v2

0 comments on commit 712b872

Please sign in to comment.