Skip to content

Commit

Permalink
ci: add action for uploading component to registry
Browse files Browse the repository at this point in the history
this commit also modifies the path and version of dependencies in the examples
  • Loading branch information
SoucheSouche committed Sep 19, 2022
1 parent dfb7e6d commit 95afb10
Show file tree
Hide file tree
Showing 6 changed files with 36 additions and 15 deletions.
21 changes: 21 additions & 0 deletions .github/workflows/component_registry.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
name: Push component to https://components.espressif.com
# on: [push, pull_request]
on:
push:
tags:
- v*
jobs:
upload_components:
runs-on: ubuntu-20.04
steps:
- uses: actions/checkout@v2
with:
submodules: "recursive"

- name: Upload component to the component registry
uses: espressif/upload-components-ci-action@v1
with:
name: "esp-idf-cxx"
version: ${{ github.ref_name }}
namespace: "espressif"
api_token: ${{ secrets.IDF_COMPONENT_API_TOKEN }}
6 changes: 3 additions & 3 deletions examples/blink_cxx/main/idf_component.yml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
dependencies:
idf:
version: ">=5.0"
esp-idf-cxx:
path: ../../../
version: ">=0.1"
espressif/esp-idf-cxx:
override_path: ../../../
version: "^1.0.0"
6 changes: 3 additions & 3 deletions examples/esp_event_async_cxx/main/idf_component.yml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
dependencies:
idf:
version: ">=5.0"
esp-idf-cxx:
path: ../../../
version: ">=0.1"
espressif/esp-idf-cxx:
override_path: ../../../
version: "^1.0.0"
6 changes: 3 additions & 3 deletions examples/esp_timer_cxx/main/idf_component.yml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
dependencies:
idf:
version: ">=5.0"
esp-idf-cxx:
path: ../../../
version: ">=0.1"
espressif/esp-idf-cxx:
override_path: ../../../
version: "^1.0.0"
6 changes: 3 additions & 3 deletions examples/simple_i2c_rw_example/main/idf_component.yml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
dependencies:
idf:
version: ">=5.0"
esp-idf-cxx:
path: ../../../
version: ">=0.1"
espressif/esp-idf-cxx:
override_path: ../../../
version: "^1.0.0"
6 changes: 3 additions & 3 deletions examples/simple_spi_rw_example/main/idf_component.yml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
dependencies:
idf:
version: ">=5.0"
esp-idf-cxx:
path: ../../../
version: ">=0.1"
espressif/esp-idf-cxx:
override_path: ../../../
version: "^1.0.0"

0 comments on commit 95afb10

Please sign in to comment.