-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
0 parents
commit 2844358
Showing
292 changed files
with
82,000 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,57 @@ | ||
name: Handle Webhook for Storybook Deployment | ||
|
||
on: | ||
repository_dispatch: | ||
types: | ||
- push | ||
|
||
jobs: | ||
build-and-deploy: | ||
runs-on: ubuntu-latest | ||
|
||
steps: | ||
- name: Checkout Repository | ||
uses: actions/checkout@v3 | ||
|
||
- name: Checkout Repository | ||
uses: actions/checkout@v3 | ||
with: | ||
repository: ir-engine/ir-engine | ||
path: './ir-engine' | ||
ref: dev | ||
|
||
- name: Set up Node.js | ||
uses: actions/setup-node@v3 | ||
with: | ||
node-version: '18' | ||
|
||
- name: Install Dependencies | ||
run: | | ||
cd ir-engine | ||
npm install | ||
- name: Build Storybook | ||
run: | | ||
cd ir-engine/packages/ui | ||
npm run build-storybook | ||
- name: Deploy Storybook to master branch | ||
run: | | ||
mv ir-engine/packages/ui/storybook-static . | ||
git config --global user.name "github-actions[bot]" | ||
git config --global user.email "github-actions[bot]@users.noreply.github.com" | ||
git checkout --orphan temp-master | ||
find . -mindepth 1 \ | ||
-not -path './.git*' \ | ||
-not -path './.github*' \ | ||
-not -path './storybook-static*' \ | ||
-exec rm -rf {} + 2>/dev/null || true | ||
mv storybook-static/* . | ||
rmdir storybook-static | ||
touch .nojekyll | ||
git add . | ||
git commit -m "Update Storybook documentation" | ||
git push --force origin temp-master:master |
Empty file.
Large diffs are not rendered by default.
Oops, something went wrong.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
Oops, something went wrong.