-
Notifications
You must be signed in to change notification settings - Fork 9
42 lines (33 loc) · 1.13 KB
/
publish.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
name: conan
on:
release:
types: [published]
jobs:
build:
runs-on: ${{ matrix.os }}
strategy:
fail-fast: false
matrix:
include:
- { os: ubuntu-24.04, compiler: clang-18 }
steps:
- name: checkout
uses: actions/checkout@v4
- name: set up python 3.12
uses: actions/setup-python@v5
with:
python-version: 3.12
- name: install python dependencies
run: pip install --upgrade pip conan
- name: conan remote
run: conan remote add odr https://artifactory.opendocument.app/artifactory/api/conan/conan
- name: conan config
run: conan config install .github/config/${{ matrix.os }}-${{ matrix.compiler }}/conan
- name: get version
run: echo "VERSION=${GITHUB_REF_NAME:1}" >> $GITHUB_ENV
- name: create conan package
run: conan create conanfile.py --name odrcore --version ${VERSION} --build missing
- name: conan login
run: conan remote login odr admin --password ${{ secrets.ARTIFACTORY }}
- name: upload to conan repo
run: conan upload "*" --remote odr --confirm