@@ -400,8 +400,6 @@ jobs:
400400 run : echo "BUILD_COMMIT_HASH=${{github.sha}}" >> $GITHUB_ENV
401401 - name : Install combined wheel and run a smoke-test
402402 if : startsWith(github.ref, 'refs/tags/v') != true
403- env :
404- ARTIFACTORY_URL : ${{ secrets.ARTIFACTORY_URL }}
405403 run : |
406404 set -euo pipefail
407405
@@ -417,13 +415,6 @@ jobs:
417415 python -m pip install --force-reinstall $wheel
418416
419417 EXPECTED_VERSION="$ver" python bindings/python/ci/smoke_depthai.py
420- - name : Upload combined wheels to artifactory
421- if : github.event_name == 'workflow_dispatch' || github.event_name == 'push'
422- run : cd bindings/python && bash ./ci/upload-artifactory.sh --snapshot
423- env :
424- ARTIFACTORY_URL : ${{ secrets.ARTIFACTORY_URL }}
425- ARTIFACTORY_USER : ${{ secrets.ARTIFACTORY_USER }}
426- ARTIFACTORY_PASS : ${{ secrets.ARTIFACTORY_PASS }}
427418
428419 # This job builds wheels for x86_64 arch
429420 build-linux-x86_64 :
@@ -527,8 +518,6 @@ jobs:
527518 run : echo "BUILD_COMMIT_HASH=${{github.sha}}" >> $GITHUB_ENV
528519 - name : Install combined wheel and run a smoke-test
529520 if : startsWith(github.ref, 'refs/tags/v') != true
530- env :
531- ARTIFACTORY_URL : ${{ secrets.ARTIFACTORY_URL }}
532521 run : |
533522 set -euo pipefail
534523
@@ -547,13 +536,6 @@ jobs:
547536
548537 # Smoke test: fail hard on any exception or version mismatch
549538 EXPECTED_VERSION="$ver" "$PYBIN" bindings/python/ci/smoke_depthai.py
550- - name : Upload combined wheels to artifactory
551- if : github.event_name == 'workflow_dispatch' || github.event_name == 'push'
552- run : cd bindings/python && bash ./ci/upload-artifactory.sh --snapshot
553- env :
554- ARTIFACTORY_URL : ${{ secrets.ARTIFACTORY_URL }}
555- ARTIFACTORY_USER : ${{ secrets.ARTIFACTORY_USER }}
556- ARTIFACTORY_PASS : ${{ secrets.ARTIFACTORY_PASS }}
557539
558540 # This job builds wheels for ARM64 arch
559541 build-linux-arm64 :
@@ -661,8 +643,6 @@ jobs:
661643 run : echo "BUILD_COMMIT_HASH=${{github.sha}}" >> $GITHUB_ENV
662644 - name : Install combined wheel and run a smoke-test
663645 if : startsWith(github.ref, 'refs/tags/v') != true
664- env :
665- ARTIFACTORY_URL : ${{ secrets.ARTIFACTORY_URL }}
666646 run : |
667647 set -euo pipefail
668648
@@ -681,13 +661,6 @@ jobs:
681661 "$PYBIN" -m pip install --force-reinstall $wheel
682662
683663 EXPECTED_VERSION="$ver" "$PYBIN" bindings/python/ci/smoke_depthai.py
684- - name : Upload combined wheels to artifactory
685- if : github.event_name == 'workflow_dispatch' || github.event_name == 'push'
686- run : cd bindings/python && bash ./ci/upload-artifactory.sh --snapshot
687- env :
688- ARTIFACTORY_URL : ${{ secrets.ARTIFACTORY_URL }}
689- ARTIFACTORY_USER : ${{ secrets.ARTIFACTORY_USER }}
690- ARTIFACTORY_PASS : ${{ secrets.ARTIFACTORY_PASS }}
691664
692665 combine-windows-x86_64-wheels :
693666 needs : build-windows-x86_64
@@ -723,8 +696,6 @@ jobs:
723696 - name : Install combined wheel and run a smoke-test
724697 if : startsWith(github.ref, 'refs/tags/v') != true
725698 shell : pwsh
726- env :
727- ARTIFACTORY_URL : ${{ secrets.ARTIFACTORY_URL }}
728699 run : |
729700 $env:PYTHONIOENCODING = 'utf-8'
730701 $ErrorActionPreference = "Stop" # Fail on any error
@@ -743,17 +714,29 @@ jobs:
743714 # Smoke test (no heredoc; YAML-safe). Fail on import error or version mismatch.
744715 $env:EXPECTED_VERSION = $ver
745716 python bindings/python/ci/smoke_depthai.py
746- - name : Upload combined wheels to artifactory
747- if : github.event_name == 'workflow_dispatch' || github.event_name == 'push'
748- run : cd bindings/python && bash ./ci/upload-artifactory.sh --snapshot
717+
718+ upload-wheels-to-ak :
719+ if : github.event_name == 'workflow_dispatch' || github.event_name == 'push'
720+ needs : [combine-macos-wheels, combine-linux-x86_64-wheels, combine-linux-arm64-wheels, combine-windows-x86_64-wheels]
721+ runs-on : ubuntu-latest
722+ steps :
723+ - uses : actions/checkout@v3
724+
725+ - uses : actions/download-artifact@v4
726+ with :
727+ pattern : audited-wheels-combined-*
728+ merge-multiple : true
729+ path : bindings/python/wheelhouse/audited/
730+
731+ - name : Upload combined wheels to Artifact Keeper
732+ run : cd bindings/python && bash ./ci/upload-ak.sh --snapshot
749733 env :
750- ARTIFACTORY_URL : ${{ secrets.ARTIFACTORY_URL }}
751- ARTIFACTORY_USER : ${{ secrets.ARTIFACTORY_USER }}
752- ARTIFACTORY_PASS : ${{ secrets.ARTIFACTORY_PASS }}
734+ AK_URL : ${{ secrets.AK_URL }}
735+ AK_TOKEN : ${{ secrets.AK_TOKEN }}
753736
754737 notify-slack :
755738 if : github.event_name == 'workflow_dispatch' || github.event_name == 'push'
756- needs : [combine-macos- wheels, combine-linux-x86_64-wheels, combine-linux-arm64-wheels, combine-windows-x86_64-wheels ]
739+ needs : [upload- wheels-to-ak ]
757740 runs-on : ubuntu-latest
758741 steps :
759742 - uses : actions/checkout@v3
@@ -816,7 +799,7 @@ jobs:
816799 - name : Check if version matches
817800 run : cd bindings/python && python3.8 -c 'import find_version as v; exit(0) if "${{ github.ref_name }}" == f"v{v.get_package_version()}" else exit(1)'
818801
819- # Deploy to PyPi and Artifactory . Only when a commit is tagged
802+ # Deploy to PyPI and Artifact Keeper . Only when a commit is tagged
820803 deploy :
821804 if : startsWith(github.ref, 'refs/tags/v')
822805 needs : [release]
@@ -839,12 +822,11 @@ jobs:
839822 PYPI_SERVER : ${{ secrets.PYPI_SERVER }}
840823 PYPI_USER : ${{ secrets.PYPI_USER }}
841824 PYPI_PASSWORD : ${{ secrets.PYPI_PASSWORD }}
842- - name : Run deploy to Artifactory
843- run : cd bindings/python && bash ./ci/upload-artifactory .sh --release
825+ - name : Run deploy to Artifact Keeper
826+ run : cd bindings/python && bash ./ci/upload-ak .sh --release
844827 env :
845- ARTIFACTORY_URL : ${{ secrets.ARTIFACTORY_URL }}
846- ARTIFACTORY_USER : ${{ secrets.ARTIFACTORY_USER }}
847- ARTIFACTORY_PASS : ${{ secrets.ARTIFACTORY_PASS }}
828+ AK_URL : ${{ secrets.AK_URL }}
829+ AK_TOKEN : ${{ secrets.AK_TOKEN }}
848830
849831 dispatch-bom-tests :
850832 needs : [build-linux-x86_64, deploy]
@@ -911,4 +893,4 @@ jobs:
911893 if [ "$CONCLUSION" != "success" ] && [ "$CONCLUSION" != "skipped" ]; then
912894 echo "Failed job"
913895 exit 1
914- fi
896+ fi
0 commit comments