Skip to content

Commit

Permalink
fix: deploy action
Browse files Browse the repository at this point in the history
  • Loading branch information
lydiahjchung committed Aug 11, 2024
1 parent ab67991 commit 219575a
Showing 1 changed file with 3 additions and 20 deletions.
23 changes: 3 additions & 20 deletions .github/workflows/deploy-storybook.yml
Original file line number Diff line number Diff line change
Expand Up @@ -32,15 +32,14 @@ jobs:
- name: Build Storybook
run: pnpm run build-storybook

- name: Upload Storybook build
uses: actions/upload-artifact@v4
- name: Upload Pages artifact
uses: actions/upload-pages-artifact@v2
with:
name: storybook-build
path: storybook-static

deploy:
runs-on: ubuntu-latest
needs: build
needs: [test, build]

permissions:
pages: write
Expand All @@ -51,22 +50,6 @@ jobs:
url: ${{ steps.deployment.outputs.page_url }}

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

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

- name: List contents of the artifact
run: |
echo "Contents of ./storybook-static:"
ls -lR ./storybook-static
echo "Total size:"
du -sh ./storybook-static
- name: Deploy to GitHub Pages
id: deployment
uses: actions/deploy-pages@v4

0 comments on commit 219575a

Please sign in to comment.