Skip to content

Commit

Permalink
Debug
Browse files Browse the repository at this point in the history
  • Loading branch information
milespetrov committed Sep 4, 2024
1 parent 0bf7bc0 commit e4a7b7d
Showing 1 changed file with 14 additions and 7 deletions.
21 changes: 14 additions & 7 deletions .github/workflows/demo-build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -46,6 +46,7 @@ jobs:
if git ls-remote --heads origin demo-page | grep -q "refs/heads/demo-page"; then
echo "demo-page exists."
git checkout demo-page
ls -a
else
echo "demo-page does not exist. Creating an orphan branch."
git checkout --orphan demo-page
Expand All @@ -58,8 +59,14 @@ jobs:
git checkout $BRANCH_OR_TAG_NAME
git checkout -b temp-$BRANCH_OR_TAG_NAME
echo "Current branch or tag: temp-$BRANCH_OR_TAG_NAME"
ls -a
git --work-tree=demo-folder checkout demo-page -- . || true
echo "Demo folder added"
ls -a
# Modify and commit changes
npm ci
npm run build
Expand Down Expand Up @@ -94,18 +101,19 @@ jobs:
rm -rf demo-folder/$BRANCH_OR_TAG_NAME
# Create a subfolder and checkout demo-page's content
mkdir -p demo-folder/$BRANCH_OR_TAG_NAME/docs
mkdir -p demo-folder/$BRANCH_OR_TAG_NAME/docs/api-tech-docs
npm run ts-docs:generate
npm run vite-docs:generate
# Move the built files and docs into the demo-folder
mv dist demo-folder/$BRANCH_OR_TAG_NAME
mv vite-docs demo-folder/$BRANCH_OR_TAG_NAME/docs
mv ts-docs demo-folder/$BRANCH_OR_TAG_NAME/docs/api-tech-docs
mv dist/* demo-folder/$BRANCH_OR_TAG_NAME
mv vite-docs/* demo-folder/$BRANCH_OR_TAG_NAME/docs
mv ts-docs/* demo-folder/$BRANCH_OR_TAG_NAME/docs/api-tech-docs
ls -a
find .
rm -rf node_modules
# rm -rf node_modules
git add demo-folder
git commit -m "Modified contents of demo-page within demo-folder"
Expand All @@ -114,7 +122,6 @@ jobs:
git checkout demo-page
git checkout temp-$BRANCH_OR_TAG_NAME -- demo-folder
find .
mv demo-folder/* .
rm -rf demo-folder
Expand Down

0 comments on commit e4a7b7d

Please sign in to comment.