-
Notifications
You must be signed in to change notification settings - Fork 2.2k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* Promote the storybook, replace old website * tweak link text * let's not push empty commits * This isn't actually preserved in the built types * restore old pages * Bring back this line Co-authored-by: Aman Mahajan <[email protected]>
- Loading branch information
1 parent
4608f3b
commit 39d3792
Showing
3 changed files
with
24 additions
and
34 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 |
---|---|---|
|
@@ -63,25 +63,15 @@ jobs: | |
run: | | ||
git config --global user.email '[email protected]' | ||
git config --global user.name 'GitHub Action' | ||
# - name: Deploy main | ||
# if: github.ref == 'refs/heads/main' | ||
# run: | | ||
# git fetch origin gh-pages | ||
# git worktree add gh-pages gh-pages | ||
# git rm -r . | ||
# git checkout gh-pages -- canary | ||
# mv ../storybook-static/* . | ||
# git add . | ||
# git commit --allow-empty -m "main storybook deployment" | ||
# git push -f https://adazzle:${{secrets.GITHUB_TOKEN}}@github.com/adazzle/react-data-grid.git | ||
- name: Deploy main | ||
- name: Deploy gh-pages | ||
if: github.ref == 'refs/heads/main' | ||
run: | | ||
git fetch origin gh-pages | ||
git worktree add gh-pages gh-pages | ||
cd gh-pages | ||
git rm -r --ignore-unmatch canary | ||
mv ../storybook-static canary | ||
git add canary | ||
git commit --allow-empty -m "beta storybook deployment" | ||
git rm -r . | ||
git checkout gh-pages -- old | ||
mv ../storybook-static/* . | ||
git add . | ||
git commit -m "gh-pages deployment" || echo "Nothing to commit" | ||
git push -f https://adazzle:${{secrets.GITHUB_TOKEN}}@github.com/adazzle/react-data-grid.git |
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
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