Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
22 changes: 14 additions & 8 deletions .github/workflows/integration-tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -204,6 +204,7 @@ jobs:
with:
fetch-depth: 0
ref: main
token: ${{ secrets.ADMIN_PAT }}

- name: Ensure latest main (with bump)
run: git pull origin main
Expand All @@ -212,29 +213,34 @@ jobs:
uses: actions/download-artifact@v4
with:
name: real-binary
path: python/teams_lib_pzsp2_z1/bin/
path: /tmp/real-binary

- name: Prepare Client Directory
run: |
chmod +x python/teams_lib_pzsp2_z1/bin/*

mkdir python_release
cp -r python/* python_release/

mkdir -p python_release/.github/workflows
# binaries
TARGET_BIN_DIR="python_release/teams_lib_pzsp2_z1/bin/"
mkdir -p $TARGET_BIN_DIR
find /tmp/real-binary -type f -exec cp {} $TARGET_BIN_DIR \;
chmod +x $TARGET_BIN_DIR/*

# publish workflow
mkdir -p python_release/.github/workflows
cp .github/workflows/publish.yml python_release/.github/workflows/

# license file
if [ -f "LICENSE" ]; then
cp LICENSE python_release/
fi

# clean up unneeded files
rm -rf python_release/tests
find python_release -type d -name "__pycache__" -exec rm -rf {} +
rm -rf python_release/.venv
rm -rf python_release/uv.lock

ls -R python_release/teams_lib_pzsp2_z1/bin
ls -R python_release

- name: Commit and Push to Release Branch
run: |
Expand All @@ -243,9 +249,9 @@ jobs:
git checkout --orphan python-release

git rm -rf .
cp -r python_release/* .
cp -a python_release/. .
rm -rf python_release
git add .

git add .
git commit -m "Release build: ${{ github.sha }}"
git push -f origin python-release