We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent f3c5016 commit 3877bd9Copy full SHA for 3877bd9
1 file changed
.github/workflows/build-demos.yml
@@ -1,4 +1,4 @@
1
-name: Deploy to GitHub Pages
+name: Build Demos and push to main
2
3
on:
4
push:
@@ -56,12 +56,22 @@ jobs:
56
57
- name: Commit and Push Changes
58
run: |
59
+ echo "Configuring git..."
60
git config --local user.email "github-actions[bot]@users.noreply.github.com"
61
git config --local user.name "github-actions[bot]"
62
- # Pull the latest changes
63
+ echo "Stashing changes..."
64
+ git stash
65
+
66
+ echo "Pulling latest changes..."
67
git pull origin main --rebase
-
68
69
+ echo "Applying stashed changes..."
70
+ git stash pop
71
72
+ echo "Adding and committing changes..."
73
git add demos/
74
git commit -m "Update demo builds" || echo "No changes to commit"
75
76
+ echo "Pushing changes..."
77
git push
0 commit comments