mirror of
https://github.com/msberends/AMR.git
synced 2026-11-16 00:50:58 +01:00
(v2.1.1.9205) Fix python wrapper
This commit is contained in:
1 parent
afb97ad38f
commit
ede1cdfd99
5 files changed
+31
-25
No files matched your search
@@ -75,24 +75,24 @@ jobs:
|
||||
python -m twine upload --repository-url https://test.pypi.org/legacy/ dist/*
|
||||
|
||||
- name: Git push to python-wrapper branch
|
||||
run: |
|
||||
git config user.name "GitHub Actions"
|
||||
git config user.email "<>"
|
||||
|
||||
# Create and switch to python-wrapper branch (orphan if it doesn't exist)
|
||||
git fetch origin python-wrapper || true
|
||||
git checkout python-wrapper || git checkout --orphan python-wrapper
|
||||
|
||||
# Delete all existing files from the working tree (safely)
|
||||
git rm -rf . || true
|
||||
rm -rf * || true
|
||||
|
||||
# Copy over only PythonPackage/AMR contents from main
|
||||
git checkout main -- PythonPackage/AMR
|
||||
mv PythonPackage/AMR/* .
|
||||
rm -rf PythonPackage
|
||||
|
||||
# Commit and push if changes exist
|
||||
git add .
|
||||
git commit -m "Python wrapper update" || echo "No changes to commit"
|
||||
git push origin python-wrapper --force
|
||||
run: |
|
||||
git config user.name "GitHub Actions"
|
||||
git config user.email "<>"
|
||||
|
||||
# Create and switch to python-wrapper branch (orphan if it doesn't exist)
|
||||
git fetch origin python-wrapper || true
|
||||
git checkout python-wrapper || git checkout --orphan python-wrapper
|
||||
|
||||
# Delete all existing files from the working tree (safely)
|
||||
git rm -rf . || true
|
||||
rm -rf * || true
|
||||
|
||||
# Copy over only PythonPackage/AMR contents from main
|
||||
git checkout main -- PythonPackage/AMR
|
||||
mv PythonPackage/AMR/* .
|
||||
rm -rf PythonPackage
|
||||
|
||||
# Commit and push if changes exist
|
||||
git add .
|
||||
git commit -m "Python wrapper update" || echo "No changes to commit"
|
||||
git push origin python-wrapper --force
|
||||
Reference in new issue
Block a user