Skip to content

Commit

Permalink
Tried using a GitHub Actions plugin for Pages
Browse files Browse the repository at this point in the history
  • Loading branch information
Daniel Mittelman committed Oct 14, 2020
1 parent dcc42d9 commit 1619b9f
Showing 1 changed file with 7 additions and 11 deletions.
18 changes: 7 additions & 11 deletions .github/workflows/publish-storybook.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,23 +14,19 @@ jobs:
- uses: actions/setup-node@v1
with:
node-version: 12
- name: Build & Deploy Storybook to GitHub pages
- name: Build & deploy Storybook to GitHub Pages
run: |
npm install
npm run build-storybook -- -o static_storybook
cd static_storybook
echo "style.monday.com" > ./CNAME
git init
git config user.name "GH Pages Bot"
git config user.email "[email protected]"
git config commit.gpgsign false
git add .
git commit -m "Deploy Storybook [ci-skip]"
env:
NODE_AUTH_TOKEN: ${{secrets.npm_token}}
- name: Push to Storybook's branch
uses: ad-m/[email protected]
if: success()
uses: crazy-max/ghaction-github-pages@v2
with:
github_token: ${secrets.GIT_TOKEN}}
branch: "master:gh-pages"
force: true
target_branch: "gh-pages"
build_dir: public
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

0 comments on commit 1619b9f

Please sign in to comment.