Release/16.0.0 (#835) #128
This file contains hidden or 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: Build Storybook Main | |
on: | |
push: | |
branches: | |
- main | |
jobs: | |
build: | |
name: Build Storybook | |
runs-on: ubuntu-latest | |
defaults: | |
run: | |
working-directory: apps/storybook-react | |
steps: | |
- name: Checkout and setup environment | |
uses: MetaMask/action-checkout-and-setup@v1 | |
with: | |
is-high-risk-environment: false | |
skip-allow-scripts: true | |
- name: Build required packages | |
working-directory: . | |
run: yarn build | |
- name: Build Storybook | |
run: | | |
yarn build-storybook | |
touch storybook-static/.nojekyll | |
- name: Upload artifact | |
id: upload | |
uses: actions/upload-pages-artifact@v3 | |
with: | |
name: github-pages | |
path: apps/storybook-react/storybook-static | |
retention-days: 1 | |
deploy: | |
name: Deploy to GitHub Pages | |
needs: build | |
permissions: | |
pages: write | |
id-token: write | |
runs-on: ubuntu-latest | |
environment: | |
name: github-pages | |
url: ${{ steps.deployment.outputs.page_url }} | |
steps: | |
- name: Deploy to GitHub Pages | |
id: deployment | |
uses: actions/deploy-pages@v4 |