mirror of
https://github.com/espressif/esp-modbus.git
synced 2025-08-03 04:14:27 +02:00
esp-modbus: fix component manager upload job
check package manager deploy
This commit is contained in:
@@ -99,25 +99,14 @@ push_master_to_github:
|
|||||||
|
|
||||||
upload_to_component_manager:
|
upload_to_component_manager:
|
||||||
stage: deploy
|
stage: deploy
|
||||||
|
image: python:3.10-alpine
|
||||||
tags:
|
tags:
|
||||||
- deploy
|
- deploy
|
||||||
only:
|
rules:
|
||||||
- master
|
- if: '$CI_COMMIT_BRANCH == "master"'
|
||||||
- /^release\/v/
|
- if: '$FORCE_PUSH_COMPONENT == "1"'
|
||||||
- /^v\d+\.\d+(\.\d+)?($|-)/
|
|
||||||
when: on_success
|
|
||||||
script:
|
script:
|
||||||
- git clone --depth 1 ${ESP_IDF_GIT} esp-idf
|
- pip install idf-component-manager
|
||||||
- export IDF_PATH=$PWD/esp-idf
|
|
||||||
- cd esp-idf
|
|
||||||
- ./tools/idf_tools.py --non-interactive install-python-env
|
|
||||||
- ./tools/idf_tools.py --non-interactive install
|
|
||||||
- idf_exports=$(${IDF_PATH}/tools/idf_tools.py --non-interactive export)
|
|
||||||
- eval "${idf_exports}"
|
|
||||||
- cd ..
|
|
||||||
- git clone $PWD esp-modbus
|
|
||||||
- cd esp-modbus
|
|
||||||
- pip install --upgrade idf-component-manager
|
|
||||||
- idf.py --help
|
|
||||||
- export IDF_COMPONENT_API_TOKEN=${ESP_MODBUS_API_KEY}
|
- export IDF_COMPONENT_API_TOKEN=${ESP_MODBUS_API_KEY}
|
||||||
- idf.py upload-component --name=esp-modbus --namespace=espressif || true
|
- python -m idf_component_manager upload-component --allow-existing --name=esp-modbus --namespace=espressif
|
||||||
|
|
||||||
|
@@ -1,4 +1,4 @@
|
|||||||
version: "0.0.2"
|
version: "1.0.0"
|
||||||
description: ESP-MODBUS is the official Modbus library for Espressif SoCs.
|
description: ESP-MODBUS is the official Modbus library for Espressif SoCs.
|
||||||
url: https://github.com/espressif/esp-modbus
|
url: https://github.com/espressif/esp-modbus
|
||||||
dependencies:
|
dependencies:
|
||||||
|
Reference in New Issue
Block a user