This repository was archived by the owner on Jan 16, 2026. It is now read-only.
File tree Expand file tree Collapse file tree 1 file changed +11
-16
lines changed
Expand file tree Collapse file tree 1 file changed +11
-16
lines changed Original file line number Diff line number Diff line change @@ -73,26 +73,21 @@ jobs:
7373 exit 1
7474 fi
7575
76- - name : Commit and push changes
77- if : github.event_name != 'pull_request'
78- run : |
79- git config --local user.email "action@github.com"
80- git config --local user.name "GitHub Action"
81-
82- if [ -n "$(git status --porcelain docs/model_config.js)" ]; then
83- git add docs/model_config.js
84- git commit -m "🤖 Auto-update model configuration
76+ - name : Deploy to GitHub Pages
77+ if : github.event_name != 'pull_request' && github.ref == 'refs/heads/main'
78+ uses : peaceiris/actions-gh-pages@v3
79+ with :
80+ github_token : ${{ secrets.GITHUB_TOKEN }}
81+ publish_dir : ./docs
82+ destination_dir : .
83+ keep_files : true
84+ commit_message : |
85+ 🤖 Auto-update model configuration
8586
8687 - Generated from EMD Python model definitions
8788 - Updated at: $(date -u '+%Y-%m-%d %H:%M:%S UTC')
8889 - Triggered by: ${{ github.event_name }}
89- - Commit: ${{ github.sha }}"
90-
91- git push
92- echo "✅ Model configuration updated and committed"
93- else
94- echo "ℹ️ No changes to model configuration"
95- fi
90+ - Source commit: ${{ github.sha }}
9691
9792 - name : Upload model config as artifact
9893 uses : actions/upload-artifact@v4
You can’t perform that action at this time.
0 commit comments