Skip to content

Commit 3877bd9

Browse files
authored
fix: demo build process
1 parent f3c5016 commit 3877bd9

1 file changed

Lines changed: 13 additions & 3 deletions

File tree

.github/workflows/build-demos.yml

Lines changed: 13 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
name: Deploy to GitHub Pages
1+
name: Build Demos and push to main
22

33
on:
44
push:
@@ -56,12 +56,22 @@ jobs:
5656
5757
- name: Commit and Push Changes
5858
run: |
59+
echo "Configuring git..."
5960
git config --local user.email "github-actions[bot]@users.noreply.github.com"
6061
git config --local user.name "github-actions[bot]"
6162
62-
# Pull the latest changes
63+
echo "Stashing changes..."
64+
git stash
65+
66+
echo "Pulling latest changes..."
6367
git pull origin main --rebase
64-
68+
69+
echo "Applying stashed changes..."
70+
git stash pop
71+
72+
echo "Adding and committing changes..."
6573
git add demos/
6674
git commit -m "Update demo builds" || echo "No changes to commit"
75+
76+
echo "Pushing changes..."
6777
git push

0 commit comments

Comments
 (0)