Skip to content

Commit

Permalink
Feat/196/fix gh pages font (MetaMask#228)
Browse files Browse the repository at this point in the history
* 196: update gh pages storybook build

* fix build and add new deploy command

* update workflow action command

* revert back to storybook build

* remove -s ./docs/fonts

* storybook action

* workflow update

* remove workflow name

* update workflow permission

* prettier yml

* put back to normal and add storybook build to main branch

* clean up build-deploy-storybook workflow
  • Loading branch information
garrettbear authored Aug 24, 2022
1 parent 8436a9c commit 38c08b3
Show file tree
Hide file tree
Showing 2 changed files with 33 additions and 1 deletion.
32 changes: 32 additions & 0 deletions .github/workflows/build-deploy-storybook.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,32 @@
name: Build and Deploy Storybook

on:
push:
branches: [main]
pull_request:

jobs:
publish-release:
permissions:
contents: write
if: github.event.pull_request.merged
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
with:
# We check out the pull request's base branch, which will be
# used as the base branch for all git operations.
ref: ${{ github.event.pull_request.base.ref }}
- name: Get Node.js version
id: nvm
run: echo ::set-output name=NODE_VERSION::$(cat .nvmrc)
- uses: actions/setup-node@v2
with:
node-version: ${{ steps.nvm.outputs.NODE_VERSION }}
- run: yarn
- uses: MetaMask/action-publish-gh-pages@v2
with:
build-command: build-storybook
source-directory: storybook-static
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
2 changes: 1 addition & 1 deletion .nvmrc
Original file line number Diff line number Diff line change
@@ -1 +1 @@
v12
v16

0 comments on commit 38c08b3

Please sign in to comment.