Skip to content

Commit 81dca12

Browse files
committed
fix publish
1 parent 2e9e7d5 commit 81dca12

1 file changed

Lines changed: 15 additions & 7 deletions

File tree

.github/workflows/publish.yml

Lines changed: 15 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -23,18 +23,26 @@ jobs:
2323
- name: install python dependencies
2424
run: pip install --upgrade pip conan
2525

26-
- name: conan remote
27-
run: conan remote add odr https://artifactory.opendocument.app/artifactory/api/conan/conan
26+
- name: get version
27+
run: echo "VERSION=${GITHUB_REF_NAME:1}" >> $GITHUB_ENV
2828

29+
- name: conan remote
30+
run: |
31+
conan remote remove "*"
32+
conan remote add odr https://artifactory.opendocument.app/artifactory/api/conan/conan
33+
conan remote add conancenter https://center2.conan.io
2934
- name: conan config
3035
run: conan config install .github/config/conan
31-
32-
- name: get version
33-
run: echo "VERSION=${GITHUB_REF_NAME:1}" >> $GITHUB_ENV
36+
- name: conan install
37+
run: >
38+
conan install .
39+
--lockfile conan.lock
40+
--profile:host '${{ matrix.host_profile }}'
41+
--profile:build '${{ matrix.build_profile }}'
3442
3543
- name: create conan package
3644
run: >
37-
conan create conanfile.py
45+
conan create .
3846
--lockfile conan.lock
3947
--profile:host '${{ matrix.host_profile }}'
4048
--profile:build '${{ matrix.build_profile }}'
@@ -46,4 +54,4 @@ jobs:
4654
run: conan remote login odr admin --password ${{ secrets.ARTIFACTORY }}
4755

4856
- name: upload to conan repo
49-
run: conan upload "*" --remote odr --confirm
57+
run: conan upload "*" --remote odr --only-recipe --confirm

0 commit comments

Comments
 (0)