Skip to content
This repository was archived by the owner on Sep 20, 2025. It is now read-only.

Commit 42aeac4

Browse files
authored
doc: fixed branch for model configuration file location (#170)
* fix: development build * fix: cleanup * fix: fix workflow * doc: fixed branch for model configuration file location * doc: code cleanup
1 parent 14b1b9b commit 42aeac4

File tree

1 file changed

+11
-16
lines changed

1 file changed

+11
-16
lines changed

.github/workflows/generate-model-config.yml

Lines changed: 11 additions & 16 deletions
Original file line numberDiff line numberDiff 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 "[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
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

0 commit comments

Comments
 (0)