diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index c660ea9..5604960 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -23,10 +23,15 @@ jobs: - name: Build storybook run: npm run build-storybook + - name: Setup pages. + uses: actions/configure-pages@v2 + - name: Upload artifact. + uses: actions/upload-pages-artifact@v1 + with: + path: ./storybook-static/ - name: Publish storybook build to github pages - env: - GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} - run: npx semantic-release + id: deployment + uses: actions/deploy-pages@v1 - name: Publish library to github packages env: diff --git a/.gitignore b/.gitignore index 50a7c8e..9c5763a 100644 --- a/.gitignore +++ b/.gitignore @@ -1,3 +1,4 @@ node_modules build storybook.log +storybook-static