-
Notifications
You must be signed in to change notification settings - Fork 0
51 lines (42 loc) · 1.28 KB
/
publish-package.yml
File metadata and controls
51 lines (42 loc) · 1.28 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
44
45
46
47
48
49
50
51
name: Embedded Lib Conan Package
on:
push:
tags: [ "v*" ]
workflow_dispatch:
jobs:
build-and-publish:
runs-on: ubuntu-latest
container:
image: ghcr.io/${{ github.repository_owner }}/embedded-lib-dev:latest
permissions:
contents: read
packages: write
steps:
- uses: actions/checkout@v4
with:
fetch-depth: 0
- name: Extract version from tag
id: vars
run: |
TAG=${GITHUB_REF#refs/tags/}
VERSION=${TAG#v}
echo "version=$VERSION" >> $GITHUB_OUTPUT
- name: Check environment
run: |
conan --version
cmake --version
gcc --version
- name: Configure Conan remote
run: |
conan remote add emilcode-conan https://emilcodedev.jfrog.io/artifactory/api/conan/emilcode-conan
conan remote login -p $JFROG_TOKEN emilcode-conan ephraim.eckl@posteo.de
env:
JFROG_TOKEN: ${{ secrets.JFROG_CONAN }}
- name: Create Conan package
run: |
conan profile detect --force
conan create . --build=missing
env:
CONAN_REF_VERSION: ${{ steps.vars.outputs.version }}
- name: Upload Conan package
run: conan upload "*" --remote=emilcode-conan --confirm