mirror of
https://github.com/tw93/Mole.git
synced 2026-02-04 14:26:46 +00:00
adjust update manager test directory structure, and improve release workflow for binary updates
This commit is contained in:
18
.github/workflows/release.yml
vendored
18
.github/workflows/release.yml
vendored
@@ -47,14 +47,30 @@ jobs:
|
||||
|
||||
- name: Commit binaries for release
|
||||
run: |
|
||||
# Configure Git
|
||||
git config user.name "Tw93"
|
||||
git config user.email "tw93@qq.com"
|
||||
|
||||
# Save binaries to temp location
|
||||
cp bin/analyze-go /tmp/analyze-go
|
||||
cp bin/status-go /tmp/status-go
|
||||
|
||||
# Switch to main branch
|
||||
git fetch origin main
|
||||
git checkout main
|
||||
git pull origin main
|
||||
|
||||
# Restore binaries
|
||||
mv /tmp/analyze-go bin/analyze-go
|
||||
mv /tmp/status-go bin/status-go
|
||||
|
||||
# Commit and Push
|
||||
git add bin/analyze-go bin/status-go
|
||||
if git diff --staged --quiet; then
|
||||
echo "No changes to commit"
|
||||
else
|
||||
git commit -m "chore: update binaries for ${GITHUB_REF#refs/tags/}"
|
||||
git push origin HEAD:main
|
||||
git push origin main
|
||||
fi
|
||||
|
||||
update-formula:
|
||||
|
||||
Reference in New Issue
Block a user