From 1ade82669a18efdda390fb2705845c183cab3d2c Mon Sep 17 00:00:00 2001 From: Yellow Shine Date: Thu, 14 Nov 2024 18:48:28 +0800 Subject: [PATCH] fix Signed-off-by: Yellow Shine --- .github/workflows/build-and-push.yml | 24 +++++++++++++++--------- 1 file changed, 15 insertions(+), 9 deletions(-) diff --git a/.github/workflows/build-and-push.yml b/.github/workflows/build-and-push.yml index d4dbf4f..514f264 100644 --- a/.github/workflows/build-and-push.yml +++ b/.github/workflows/build-and-push.yml @@ -1,4 +1,4 @@ -name: build and push package to artifactory +name: build and push description: build a conan package and push it to artifactory on: workflow_dispatch: @@ -30,7 +30,7 @@ on: required: false default: '' jobs: - sync-conan-package: + build-and-push: runs-on: ubuntu-latest env: CONAN_REVISIONS_ENABLED: 1 @@ -47,12 +47,14 @@ jobs: - name: Configure Conan remote run: | - if [ "${{ github.event.inputs.repository }}" = "production" ]; then - conan remote add artifactory https://milvus01.jfrog.io/artifactory/api/conan/default-conan-local - else - # for testing purpose - conan remote add artifactory https://milvus01.jfrog.io/artifactory/api/conan/testing - fi + conan remote remove conan-center + conan remote add default-conan-local https://milvus01.jfrog.io/artifactory/api/conan/default-conan-local + conan remote add testing https://milvus01.jfrog.io/artifactory/api/conan/testing + + # make conan-center the lowest priority + conan remote add conan-center https://center.conan.io + + - name: List remote Conan repositories # List remote Conan repositories; should include Conan Center by default conan remote list @@ -75,4 +77,8 @@ jobs: # upload all packages # Upload only the Conan recipe to the specified local repository, excluding binaries - conan upload '*' -r artifactory -c \ No newline at end of file + if [ "${{ github.event.inputs.repository }}" = "production" ]; then + conan upload '*' -r default-conan-local -c + else + conan upload '*' -r testing -c + fi