Skip to content

Commit 95afb10

Browse files
committed
ci: add action for uploading component to registry
this commit also modifies the path and version of dependencies in the examples
1 parent dfb7e6d commit 95afb10

File tree

6 files changed

+36
-15
lines changed

6 files changed

+36
-15
lines changed
Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
name: Push component to https://components.espressif.com
2+
# on: [push, pull_request]
3+
on:
4+
push:
5+
tags:
6+
- v*
7+
jobs:
8+
upload_components:
9+
runs-on: ubuntu-20.04
10+
steps:
11+
- uses: actions/checkout@v2
12+
with:
13+
submodules: "recursive"
14+
15+
- name: Upload component to the component registry
16+
uses: espressif/upload-components-ci-action@v1
17+
with:
18+
name: "esp-idf-cxx"
19+
version: ${{ github.ref_name }}
20+
namespace: "espressif"
21+
api_token: ${{ secrets.IDF_COMPONENT_API_TOKEN }}
Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
dependencies:
22
idf:
33
version: ">=5.0"
4-
esp-idf-cxx:
5-
path: ../../../
6-
version: ">=0.1"
4+
espressif/esp-idf-cxx:
5+
override_path: ../../../
6+
version: "^1.0.0"
Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
dependencies:
22
idf:
33
version: ">=5.0"
4-
esp-idf-cxx:
5-
path: ../../../
6-
version: ">=0.1"
4+
espressif/esp-idf-cxx:
5+
override_path: ../../../
6+
version: "^1.0.0"
Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
dependencies:
22
idf:
33
version: ">=5.0"
4-
esp-idf-cxx:
5-
path: ../../../
6-
version: ">=0.1"
4+
espressif/esp-idf-cxx:
5+
override_path: ../../../
6+
version: "^1.0.0"
Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
dependencies:
22
idf:
33
version: ">=5.0"
4-
esp-idf-cxx:
5-
path: ../../../
6-
version: ">=0.1"
4+
espressif/esp-idf-cxx:
5+
override_path: ../../../
6+
version: "^1.0.0"
Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
dependencies:
22
idf:
33
version: ">=5.0"
4-
esp-idf-cxx:
5-
path: ../../../
6-
version: ">=0.1"
4+
espressif/esp-idf-cxx:
5+
override_path: ../../../
6+
version: "^1.0.0"

0 commit comments

Comments
 (0)