-
Notifications
You must be signed in to change notification settings - Fork 315
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #6 from DaPulse/storybook/orr/publish-storybook
Storybook/orr/publish storybook
- Loading branch information
Showing
1 changed file
with
29 additions
and
0 deletions.
There are no files selected for viewing
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,29 @@ | ||
|
||
name: Publish Storybook | ||
|
||
on: | ||
release: | ||
types: [created] | ||
|
||
|
||
jobs: | ||
build-and-deploy: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v2 | ||
- uses: actions/setup-node@v1 | ||
with: | ||
node-version: 12 | ||
- name: Build & Deploy Storybook to GitHub pages | ||
run: npm run deploy-storybook | ||
env: | ||
NODE_AUTH_TOKEN: ${{secrets.npm_token}} | ||
- run: | | ||
echo "style.monday.com" > ./CNAME | ||
git init | ||
git config user.name "GH Pages Bot" | ||
git config user.email "hello@ghbot.com" | ||
git config commit.gpgsign false | ||
git add . | ||
git commit -m "Deploy Storybook [ci-skip]" | ||
git push --force --quiet git@github.com:DaPulse/monday-ui-react-core.git master:gh-pages |