How to publish a Espressif ESP-IDF registry package in 15 seconds
Bump the version in idf_component.yml to a suitable version number, e.g. 2.0.0.
example.yml
version: "0.1.0"
description: "My package description"
url: "https://github.com/youruser/my_component"
license: "Apache-2.0"
dependencies:
## Required IDF version
idf:
version: ">=4.0.0"
# [...]Publish using
example.sh
idf.py upload-component --namespace USERNAME --name COMPONENT_NAMEIf you are missing the API token, create one in the Espressif Developer Portal, then set it as an environment variable eg in ~/.bashrc or ~/.zshrc:
example.sh
export IDF_COMPONENT_API_TOKEN="your_api_token_here"If this post helped you, please consider buying me a coffee or donating via PayPal to support research & publishing of new posts on TechOverflow