Skip to content

Commit

Permalink
ci: deploy previews to github pages
Browse files Browse the repository at this point in the history
  • Loading branch information
JoshTheWanderer committed Jul 24, 2024
1 parent 2991907 commit 649102e
Showing 1 changed file with 31 additions and 0 deletions.
31 changes: 31 additions & 0 deletions .github/workflows/preview.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
---
name: Deploy previews to GitHub Pages
on: [pull_request]
permissions:
contents: read
pages: write
id-token: write
concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true
jobs:
deploy:
environment:
name: preview
url: ${{ steps.deployment.outputs.page_url }}
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: actions/setup-node@v4
with:
node-version-file: .nvmrc
- run: npm ci
- run: npm run build
- run: npm run build-storybook
- uses: actions/configure-pages@v5
- uses: actions/upload-pages-artifact@v3
with:
path: storybook-static
- name: Deploy to GitHub Pages
id: deployment
uses: actions/deploy-pages@v4

0 comments on commit 649102e

Please sign in to comment.