Skip to content

sync to artifactory #25

sync to artifactory

sync to artifactory #25

name: download package from conan center and upload it and dpendency to jfrog artifactory
on: [workflow_dispatch]
inputs:

Check failure on line 3 in .github/workflows/github-actions-demo.yml

View workflow run for this annotation

GitHub Actions / download package from conan center and upload it and dpendency to jfrog artifactory

Invalid workflow file

The workflow is not valid. .github/workflows/github-actions-demo.yml (Line: 3, Col: 1): Unexpected value 'inputs'
package:
description: 'The Conan package to install'
required: true
default: 'gdal/3.5.3'
conan_version:
description: 'The Conan version to install'
required: true
default: '1.65.0'
upload:
description: 'Set to true to perform the upload, false for dry run'
required: false
default: 'false'
jobs:
sync-to-artifactory:
runs-on: ubuntu-latest
env:
CONAN_REVISIONS_ENABLED: 1
steps:
- uses: actions/checkout@v4
- uses: actions/setup-python@v5
with:
python-version: '3.13'
- name: Install Conan
run: |
pip install --user conan==${{ inputs.conan_version }}
conan --version
- name: Install package
run: |
# list remote conan repo, should be conan center by default
conan remote list
# install package
conan install ${{ inputs.package }} -s compiler=gcc -s compiler.version=11 -s compiler.libcxx=libstdc++11 -s build_type=Release
- name: inspect installed package
run: |
conan search '*' --revisions
- name: Upload
if: ${{ inputs.upload == 'true' }}
run: |
# Upload only the Conan recipe to the default Conan local repository, excluding binaries
conan upload ${{ inputs.package }} -r default-conan-local