Skip to content

Commit 1619b9f

Browse files
author
Daniel Mittelman
committed
Tried using a GitHub Actions plugin for Pages
1 parent dcc42d9 commit 1619b9f

File tree

1 file changed

+7
-11
lines changed

1 file changed

+7
-11
lines changed

.github/workflows/publish-storybook.yml

Lines changed: 7 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -14,23 +14,19 @@ jobs:
1414
- uses: actions/setup-node@v1
1515
with:
1616
node-version: 12
17-
- name: Build & Deploy Storybook to GitHub pages
17+
- name: Build & deploy Storybook to GitHub Pages
1818
run: |
1919
npm install
2020
npm run build-storybook -- -o static_storybook
2121
cd static_storybook
2222
echo "style.monday.com" > ./CNAME
23-
git init
24-
git config user.name "GH Pages Bot"
25-
git config user.email "[email protected]"
26-
git config commit.gpgsign false
27-
git add .
28-
git commit -m "Deploy Storybook [ci-skip]"
2923
env:
3024
NODE_AUTH_TOKEN: ${{secrets.npm_token}}
3125
- name: Push to Storybook's branch
32-
uses: ad-m/[email protected]
26+
if: success()
27+
uses: crazy-max/ghaction-github-pages@v2
3328
with:
34-
github_token: ${secrets.GIT_TOKEN}}
35-
branch: "master:gh-pages"
36-
force: true
29+
target_branch: "gh-pages"
30+
build_dir: public
31+
env:
32+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

0 commit comments

Comments
 (0)