Create Artifactory build info

This commit is contained in:
jelle spijker 2022-11-03 07:50:57 +01:00 committed by jspijker
parent b75e047348
commit ce8a7b6109
2 changed files with 13 additions and 0 deletions

View File

@ -3,6 +3,10 @@ name: Create and Upload Conan package
on:
workflow_call:
inputs:
project_name:
required: true
type: string
recipe_id_full:
required: true
type: string
@ -126,6 +130,9 @@ jobs:
if: ${{ inputs.conan_config_branch == '' }}
run: conan config install https://github.com/Ultimaker/conan-config.git
- name: Associate build information with the Conan package
run: conan_build_info --v2 start ${{ inputs.project_name }} ${{ github.run_number }}
- name: Create the Packages
if: ${{ !inputs.create_from_source }}
run: conan install ${{ inputs.recipe_id_full }} --build=missing --update
@ -151,3 +158,8 @@ jobs:
- name: Upload the Package(s) community
if: ${{ always() && inputs.conan_upload_community == true }}
run: conan upload "*" -r cura-ce -c
- name: Create and Upload the build info
run: |
conan_build_info --v2 create buildinfo.json --lockfile conan.lock --user ${{ secrets.CONAN_USER }} --password ${{ secrets.CONAN_PASS }}
conan_build_info --v2 publish buildinfo.json --url https://ultimaker.jfrog.io/artifactory --user ${{ secrets.CONAN_USER }} --password ${{ secrets.CONAN_PASS }}

View File

@ -81,6 +81,7 @@ jobs:
uses: ultimaker/cura/.github/workflows/conan-package-create.yml@main
with:
project_name: cura
recipe_id_full: ${{ needs.conan-recipe-version.outputs.recipe_id_full }}
runs_on: 'ubuntu-20.04'
python_version: '3.10.x'