Skip to content
You're viewing an older version of this GitHub Action. Do you want to see the latest version instead?
upload

GitHub Action

conan-upload

v0.1.1

conan-upload

upload

conan-upload

Uploads a package to Conan server

Installation

Copy and paste the following snippet into your .yml file.

              

- name: conan-upload

uses: grisumbras/[email protected]

Learn more about this action in grisumbras/conan-upload

Choose a version

conan-upload

Build status

GitHub Action that uploads a package to Conan server

Usage

The action authenticates against the Conan remote to upload to, then uploads a package.

Example usage:

uses: grisumbras/conan-upload@latest
with:
  login: johndoe
  password: ${{ secrets.SECRET_CONAN_PASSSWORD }}
  url: https://api.bintray.com/conan/johndoe/conan-public

Inputs

login

Username to authenticate as. If not present package’s user is used.

password

Password to use to authenticate. This is normally stored as a repository secret.

url

URL of the remote to upload to. If not specified, CONAN_UPLOAD environment variable is used.

remote

URL of the remote to upload to. If not specified, the string upload is used.

name

Name of the package to export. If not specified, name attribute of the package recipe is used.

version

Version of the package to export. If not specified, version attribute of the package recipe is used.

user

User (namespace) of the package to export. If not specified

  1. CONAN_USERNAME environment variable is used, if present;

  2. or default_user attribute of the package recipe is used, if present;

  3. or the first part of the value of GITHUB_REPOSITORY environment variable (before the slash) is used.

channel

Channel of the package to export. If not specified, the current git ref name is matched against stable pattern. If matches, the stable channel is used, otherwise the testing channel is used.

Stable pattern comes from environment variable CONAN_STABLE_BRANCH_PATTERN if it’s present, otherwise it is ^(master$|release.*|stable.*).

Stable channel comes from environment variable CONAN_STABLE_CHANNEL if it’s present, otherwise it is the string stable.

Testing channel is either

  1. the value of environment variable CONAN_CHANNEL if it’s present;

  2. or default_user attribute of the package recipe, if it’s present;

  3. or the string testing.

reference

Full reference of the package to export. If specified all inputs that specify parts of the reference are ignored.

Maintainer

Dmitry Arkhipov <[email protected]>

Contributing

Patches welcome!

License

BSL-1.0 © 2019 Dmitry Arkhipov