Skip to content

Commit d5952f6

Browse files
authored
Merge pull request #103 from sorru94/prepare-for-registry-publish
Prepare for ESP registry publish
2 parents 1e32501 + b39c042 commit d5952f6

File tree

4 files changed

+59
-7
lines changed

4 files changed

+59
-7
lines changed

.github/workflows/publish.yaml

Lines changed: 40 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,40 @@
1+
#
2+
# This file is part of Edgehog.
3+
#
4+
# Copyright 2024 SECO Mind Srl
5+
#
6+
# Licensed under the Apache License, Version 2.0 (the "License");
7+
# you may not use this file except in compliance with the License.
8+
# You may obtain a copy of the License at
9+
#
10+
# http://www.apache.org/licenses/LICENSE-2.0
11+
#
12+
# Unless required by applicable law or agreed to in writing, software
13+
# distributed under the License is distributed on an "AS IS" BASIS,
14+
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
15+
# See the License for the specific language governing permissions and
16+
# limitations under the License.
17+
#
18+
# SPDX-License-Identifier: Apache-2.0
19+
#
20+
21+
name: ESP registry publish
22+
23+
on:
24+
push:
25+
tags:
26+
- 'v*'
27+
28+
jobs:
29+
publish:
30+
name: Publish release to the ESP registry
31+
runs-on: ubuntu-latest
32+
steps:
33+
- uses: actions/checkout@v4
34+
- name: Upload component to the component registry
35+
uses: espressif/upload-components-ci-action@v1
36+
with:
37+
name: "edgehog-esp32-device"
38+
version: ${{ github.ref_name }}
39+
namespace: "edgehog-device-manager"
40+
api_token: ${{ secrets.IDF_COMPONENT_API_TOKEN }}

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -48,6 +48,7 @@ examples/edgehog_app/components/astarte-device-sdk-esp32
4848
doc/out
4949
/examples/edgehog_app/managed_components/
5050
/examples/edgehog_app/dependencies.lock
51+
dist
5152

5253
# VS code config
5354
.vscode/

examples/edgehog_app/main/idf_component.yml

Lines changed: 5 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -18,10 +18,9 @@
1818
# SPDX-License-Identifier: Apache-2.0
1919
#
2020

21-
## IDF Component Manager Manifest File
21+
description: Example Edgehog application
2222
dependencies:
23-
idf:
24-
version: ">=4.1.0"
25-
edgehog-esp32-device:
26-
version: "*"
27-
path: ../../../
23+
idf: ">=4.4"
24+
edgehog-device-manager/edgehog-esp32-device:
25+
version: "0.7.1"
26+
override_path: '../../../' # three levels up, pointing the directory with the component itself

idf_component.yml

Lines changed: 13 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,19 @@
2020

2121
version: "0.7.1"
2222
description: Edgehog Device ESP32 SDK
23-
url: https://github.com/edgehog-device-manager/edgehog-esp32-device.git
23+
repository: "https://github.com/edgehog-device-manager/edgehog-esp32-device.git"
24+
url: "https://edgehog.io/"
25+
documentation: "https://docs.edgehog.io/snapshot/intro_user.html"
26+
license: "Apache-2.0"
27+
maintainers:
28+
- Antonio Gisondi <antonio.gisondi@secomind.com>
29+
- Simone Orru <simone.orru@secomind.com>
30+
31+
tags:
32+
- sdk
33+
- iot
34+
- edgehog
35+
2436
dependencies:
2537
idf: ">=4.4"
2638
astarte-platform/astarte-device-sdk-esp32: "1.3.3"

0 commit comments

Comments
 (0)