-
-
Notifications
You must be signed in to change notification settings - Fork 6
43 lines (35 loc) · 1.14 KB
/
deploy-conan.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
43
name: Deploy Conan
on:
release:
types: [published]
jobs:
deploy:
name: Deployment Agent
runs-on: ubuntu-20.04
steps:
- name: Checkout Repository
uses: actions/checkout@v2
- name: Set up Python
uses: actions/setup-python@v1
with:
python-version: 3.7
- name: Install Dependencies
run: |
python -m pip install --upgrade pip
pip install conan
conan --version
- name: Prepare Conan Environment
run: |
conan remote add bintray ${{ secrets.BINTRAY_REMOTE_URL }}
conan user -p ${{ secrets.BINTRAY_API_KEY }} -r bintray ${{ secrets.BINTRAY_USERNAME }}
version=$(conan inspect $(pwd) --attribute version | sed 's@version: @@g')
echo "CONAN_PACKAGE_PATH=Backport/${version}@backport/stable" >> ${GITHUB_ENV}
- name: Package
run: |
conan create . "backport/stable"
- name: Test Package
run: |
conan test $(pwd)/.conan/test_package "${CONAN_PACKAGE_PATH}"
- name: Deploy
run: |
conan upload "${CONAN_PACKAGE_PATH}" -r bintray --all