-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathconfigureBuildTestCreateAndUpload.yaml
More file actions
43 lines (41 loc) · 1.4 KB
/
configureBuildTestCreateAndUpload.yaml
File metadata and controls
43 lines (41 loc) · 1.4 KB
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
on:
push:
branches:
- '**'
pull_request:
release:
types: [released, prereleased]
name: Configure, Build, Test, Create and Upload library
jobs:
configure:
name: Configure, Build, Test, Create and Upload library
strategy:
matrix:
os: [ubuntu-latest, macos-latest, windows-latest]
runs-on: ${{ matrix.os }}
steps:
- name: Checkout
uses: actions/checkout@v2
with:
fetch-depth: 0
- name: Install Conan
uses: turtlebrowser/get-conan@main
- name: Add artifactory remote
run: conan remote add jothepro-conan-public https://jothepro.jfrog.io/artifactory/api/conan/conan-public
- name: Install dependencies
run: conan install .
- name: configure, build and test project
if: github.event_name != 'release'
run: conan build .
- name: configure, build, test and create project for beta channel
if: github.event.release.prerelease
run: conan create . jothepro/beta
- name: configure, build, test and create project for stable channel
if: ${{ !github.event.release.prerelease }}
run: conan create . jothepro/stable
- name: upload to artifactory
if: github.event_name == 'release'
run: conan upload mylibrary -r=jothepro-conan-public --all --confirm
env:
CONAN_LOGIN_USERNAME: ${{ secrets.CONAN_LOGIN_USERNAME }}
CONAN_PASSWORD: ${{ secrets.CONAN_PASSWORD }}