Skip to content

Commit

Permalink
Deploy app and storybook
Browse files Browse the repository at this point in the history
  • Loading branch information
josepjaume committed Jul 4, 2021
1 parent 0de0906 commit 5d33346
Show file tree
Hide file tree
Showing 4 changed files with 19 additions and 36 deletions.
15 changes: 15 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -46,3 +46,18 @@ jobs:

- name: Build storybook 📖
run: npm run build-storybook

- name: Deploy build on GitHub Pages 📄
if: github.ref == 'refs/heads/main'
uses: peaceiris/actions-gh-pages@v3
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
publish_dir: dist

- name: Deploy storybook on GitHub Pages 📄
if: github.ref == 'refs/heads/main'
uses: peaceiris/actions-gh-pages@v3
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
destination_dir: storybook
publish_dir: storybook-static
3 changes: 3 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -33,5 +33,8 @@ yarn-error.log*
# vercel
.vercel

# build
dist

# storybook
storybook-static
1 change: 1 addition & 0 deletions next.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@
* */
const nextConfig = {
/* config options here */
distDir: 'dist',
experimental: {},
future: {
webpack5: false,
Expand Down
36 changes: 0 additions & 36 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit 5d33346

Please sign in to comment.