如何在 15 秒内发布 Espressif ESP-IDF 仓库包
将 idf_component.yml 中的版本号更新为合适的版本号,例如 2.0.0。
idf_component.yml
version: "0.1.0"
description: "My package description"
url: "https://github.com/youruser/my_component"
license: "Apache-2.0"
dependencies:
## 所需的 IDF 版本
idf:
version: ">=4.0.0"
# [...]使用以下命令发布:
upload_component.sh
idf.py upload-component --namespace USERNAME --name COMPONENT_NAME如果你缺少 API Token,请在 Espressif Developer Portal 中创建一个,然后将其设置为环境变量,例如在 ~/.bashrc 或 ~/.zshrc 中:
set_idf_token.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