forked from conan-io/conan-center-index
-
Notifications
You must be signed in to change notification settings - Fork 0
37 lines (35 loc) · 1.29 KB
/
ni_upload_to_jfrog.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
name: ni_upload_to_jfrog
on:
workflow_dispatch:
push:
branches:
- master
paths:
- 'recipes/dbus-cxx/**'
env:
REPO_CI: "https://push.artifacts.ni.com/artifactory/api/conan/rnd-conan-ci"
REPO_PRE: "https://push.artifacts.ni.com/artifactory/api/conan/rnd-conan-pre"
jobs:
upload_to_jfrog:
name: Upload to JFrog
runs-on: ubuntu-latest
environment: jfrog-ci
steps:
- uses: actions/checkout@v4
with:
ref: master
- uses: actions/setup-python@v5
with:
python-version: '3.10'
- run: pip install conan==2.3
- run: conan profile detect --force
# add the -ci repo
- run: conan remote add rnd-conan-ci ${{ env.REPO_CI }}
- run: conan remote login rnd-conan-ci ${{ vars.JFROG_USERNAME }} --password ${{ secrets.JFROG_ACCESS_TOKEN }}
# add the -pre repo
- run: conan remote add rnd-conan-pre ${{ env.REPO_PRE }}
- run: conan remote login rnd-conan-pre ${{ vars.JFROG_USERNAME }} --password ${{ secrets.JFROG_ACCESS_TOKEN }}
# upload dbus-cxx
- run: conan create recipes/dbus-cxx/2.x.x --version 2.4.0 --build=missing
- run: conan upload --remote rnd-conan-ci --only-recipe dbus-cxx/2.4.0
- run: conan upload --remote rnd-conan-pre --only-recipe dbus-cxx/2.4.0