ci: Conan package will be uploaded only either for a 'stable' channel or for a commit on a master branch

This commit is contained in:
Mateusz Pusz
2022-08-02 16:15:59 +02:00
parent 6f791c7cc4
commit c00d8990f4

View File

@@ -238,6 +238,7 @@ jobs:
run: |
conan create . mpusz/testing -e mp-units:CONAN_RUN_TESTS=True -o mp-units:build_docs=False -o mp-units:downcast_mode=${{ matrix.downcast_mode }} -b mp-units -b outdated -u
- name: Upload mp-units Conan package
if: github.ref == 'refs/heads/master' || env.CHANNEL == 'stable'
shell: bash
run: |
conan user ${{ secrets.CONAN_LOGIN_USERNAME }} -r artifactory -p ${{ secrets.CONAN_PASSWORD }}