Merge pull request #1 from SigmaGmbH/nft-icons #3
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Deploy storybook to GitHub Pages | |
on: | |
push: | |
branches: | |
- master | |
jobs: | |
build: | |
name: Test | |
runs-on: ubuntu-latest | |
permissions: write-all | |
environment: production | |
steps: | |
- name: Checkout repository and submodules | |
uses: actions/checkout@v3 | |
- name: 'Extend memory' | |
run: | | |
export NODE_OPTIONS="--max_old_space_size=16384" | |
- name: Set Node.js 16.x | |
uses: actions/setup-node@v3 | |
with: | |
node-version: 16.x | |
- name: Run package install | |
uses: borales/actions-yarn@v4 | |
with: | |
cmd: install | |
- name: Run build | |
uses: borales/actions-yarn@v4 | |
with: | |
cmd: build-storybook | |
- name: Deploy landing to Github Pages | |
uses: peaceiris/actions-gh-pages@v3 | |
with: | |
personal_token: ${{ secrets.GITHUB_TOKEN }} | |
publish_branch: gh-pages | |
publish_dir: storybook-static |