Skip to content

Commit

Permalink
fix
Browse files Browse the repository at this point in the history
Signed-off-by: Yellow Shine <[email protected]>
  • Loading branch information
yellow-shine committed Nov 14, 2024
1 parent edd42b4 commit 1ade826
Showing 1 changed file with 15 additions and 9 deletions.
24 changes: 15 additions & 9 deletions .github/workflows/build-and-push.yml
Original file line number Diff line number Diff line change
@@ -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:
Expand Down Expand Up @@ -30,7 +30,7 @@ on:
required: false
default: ''
jobs:
sync-conan-package:
build-and-push:
runs-on: ubuntu-latest
env:
CONAN_REVISIONS_ENABLED: 1
Expand All @@ -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
Expand All @@ -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
if [ "${{ github.event.inputs.repository }}" = "production" ]; then
conan upload '*' -r default-conan-local -c
else
conan upload '*' -r testing -c
fi

0 comments on commit 1ade826

Please sign in to comment.