From 6ad70c95d93174bbc3a8de4c65e66f5d1247d765 Mon Sep 17 00:00:00 2001 From: Michal <01187288@pw.edu.pl> Date: Fri, 19 Dec 2025 17:21:28 +0100 Subject: [PATCH 1/2] ci: corrected content pushed to python-release --- .github/workflows/integration-tests.yml | 20 +++++++++++++------- 1 file changed, 13 insertions(+), 7 deletions(-) diff --git a/.github/workflows/integration-tests.yml b/.github/workflows/integration-tests.yml index ad635d3..b3a4739 100644 --- a/.github/workflows/integration-tests.yml +++ b/.github/workflows/integration-tests.yml @@ -212,29 +212,35 @@ 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: | @@ -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 From 330d8d75870c684573830096f7756f60742542a9 Mon Sep 17 00:00:00 2001 From: Michal <01187288@pw.edu.pl> Date: Fri, 19 Dec 2025 17:34:27 +0100 Subject: [PATCH 2/2] ci: added PAT token in stage 5 to enable auto publishing --- .github/workflows/integration-tests.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/integration-tests.yml b/.github/workflows/integration-tests.yml index b3a4739..ca0aa05 100644 --- a/.github/workflows/integration-tests.yml +++ b/.github/workflows/integration-tests.yml @@ -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 @@ -238,7 +239,6 @@ jobs: 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