This repository was archived by the owner on Sep 20, 2025. 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:
73
73
exit 1
74
74
fi
75
75
76
- - name : Commit and push changes
77
- if : github.event_name != 'pull_request'
78
- run : |
79
- git config --local user.email "[email protected] "
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
85
86
86
87
- Generated from EMD Python model definitions
87
88
- Updated at: $(date -u '+%Y-%m-%d %H:%M:%S UTC')
88
89
- 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 }}
96
91
97
92
- name : Upload model config as artifact
98
93
uses : actions/upload-artifact@v4
You can’t perform that action at this time.
0 commit comments