Skip to content

Commit

Permalink
Merge pull request #204 from sorru94/prepare-esp-registry-pubblishing
Browse files Browse the repository at this point in the history
Prepare pubblishing for ESP registry
  • Loading branch information
harlem88 authored Aug 23, 2024
2 parents 51707ec + bf8e13b commit 8735d21
Show file tree
Hide file tree
Showing 18 changed files with 235 additions and 20 deletions.
40 changes: 40 additions & 0 deletions .github/workflows/publish.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,40 @@
#
# This file is part of Astarte.
#
# Copyright 2024 SECO Mind Srl
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.
#
# SPDX-License-Identifier: LGPL-2.1-or-later OR Apache-2.0
#

name: ESP registry publish

on:
push:
tags:
- 'v*'

jobs:
publish:
name: Publish release to the ESP registry
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Upload component to the component registry
uses: espressif/upload-components-ci-action@v1
with:
name: "astarte-device-sdk-esp32"
version: ${{ github.ref_name }}
namespace: "astarte-platform"
api_token: ${{ secrets.IDF_COMPONENT_API_TOKEN }}
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@ dependencies.lock
managed_components
doc/out
.vscode
dist

# Files related to clang-tidy
warnings.txt
Expand Down
7 changes: 5 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -12,8 +12,11 @@ Astarte ESP32 SDK lets you connect your ESP32 device to
The SDK simplifies all the low-level operations like credentials generation, pairing and so on, and
exposes a high-level API to publish data from your device.

Have a look at the [examples](examples/README.md) for a usage example showing how to send and
receive data.
Check out the examples on the right pane of the
[astarte-device-sdk-esp32](https://components.espressif.com/components/astarte-platform/astarte-device-sdk-esp32)
component page or on the
[GitHub repository](https://github.com/astarte-platform/astarte-device-sdk-esp32/tree/master/examples/README.md)
.

## Documentation

Expand Down
2 changes: 0 additions & 2 deletions examples/aggregates/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,4 @@ cmake_minimum_required(VERSION 3.5)

include($ENV{IDF_PATH}/tools/cmake/project.cmake)

set(EXTRA_COMPONENT_DIRS ${CMAKE_SOURCE_DIR}/../..)

project(aggregates)
26 changes: 26 additions & 0 deletions examples/aggregates/main/idf_component.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
#
# This file is part of Astarte.
#
# Copyright 2024 SECO Mind Srl
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.
#
# SPDX-License-Identifier: LGPL-2.1-or-later OR Apache-2.0
#

description: Example for transmission and reception of aggregated datastreams
dependencies:
idf: ">=4.4"
astarte-platform/astarte-device-sdk-esp32:
version: '1.3.1'
override_path: '../../../' # three levels up, pointing the directory with the component itself
2 changes: 0 additions & 2 deletions examples/datastreams/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,4 @@ cmake_minimum_required(VERSION 3.5)

include($ENV{IDF_PATH}/tools/cmake/project.cmake)

set(EXTRA_COMPONENT_DIRS ${CMAKE_SOURCE_DIR}/../..)

project(datastreams)
26 changes: 26 additions & 0 deletions examples/datastreams/main/idf_component.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
#
# This file is part of Astarte.
#
# Copyright 2024 SECO Mind Srl
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.
#
# SPDX-License-Identifier: LGPL-2.1-or-later OR Apache-2.0
#

description: Example for transmission and reception of individual datastreams
dependencies:
idf: ">=4.4"
astarte-platform/astarte-device-sdk-esp32:
version: '1.3.1'
override_path: '../../../' # three levels up, pointing the directory with the component itself
2 changes: 0 additions & 2 deletions examples/encryption/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,4 @@ cmake_minimum_required(VERSION 3.5)

include($ENV{IDF_PATH}/tools/cmake/project.cmake)

set(EXTRA_COMPONENT_DIRS ${CMAKE_SOURCE_DIR}/../..)

project(encryption)
26 changes: 26 additions & 0 deletions examples/encryption/main/idf_component.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
#
# This file is part of Astarte.
#
# Copyright 2024 SECO Mind Srl
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.
#
# SPDX-License-Identifier: LGPL-2.1-or-later OR Apache-2.0
#

description: Example for the use of the Astarte device SDK with encrypted flash partitions
dependencies:
idf: ">=4.4"
astarte-platform/astarte-device-sdk-esp32:
version: '1.3.1'
override_path: '../../../' # three levels up, pointing the directory with the component itself
2 changes: 0 additions & 2 deletions examples/non_volatile_storage/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,4 @@ cmake_minimum_required(VERSION 3.5)

include($ENV{IDF_PATH}/tools/cmake/project.cmake)

set(EXTRA_COMPONENT_DIRS ${CMAKE_SOURCE_DIR}/../..)

project(non-volatile-storage)
26 changes: 26 additions & 0 deletions examples/non_volatile_storage/main/idf_component.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
#
# This file is part of Astarte.
#
# Copyright 2024 SECO Mind Srl
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.
#
# SPDX-License-Identifier: LGPL-2.1-or-later OR Apache-2.0
#

description: Example for the use of the Astarte device SDK with non volatile storage enabled
dependencies:
idf: ">=4.4"
astarte-platform/astarte-device-sdk-esp32:
version: '1.3.1'
override_path: '../../../' # three levels up, pointing the directory with the component itself
2 changes: 0 additions & 2 deletions examples/properties/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,4 @@ cmake_minimum_required(VERSION 3.5)

include($ENV{IDF_PATH}/tools/cmake/project.cmake)

set(EXTRA_COMPONENT_DIRS ${CMAKE_SOURCE_DIR}/../..)

project(properties)
26 changes: 26 additions & 0 deletions examples/properties/main/idf_component.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
#
# This file is part of Astarte.
#
# Copyright 2024 SECO Mind Srl
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.
#
# SPDX-License-Identifier: LGPL-2.1-or-later OR Apache-2.0
#

description: Example for setting and unsetting individual properties
dependencies:
idf: ">=4.4"
astarte-platform/astarte-device-sdk-esp32:
version: '1.3.1'
override_path: '../../../' # three levels up, pointing the directory with the component itself
2 changes: 0 additions & 2 deletions examples/registration/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,4 @@ cmake_minimum_required(VERSION 3.5)

include($ENV{IDF_PATH}/tools/cmake/project.cmake)

set(EXTRA_COMPONENT_DIRS ${CMAKE_SOURCE_DIR}/../..)

project(registration)
26 changes: 26 additions & 0 deletions examples/registration/main/idf_component.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
#
# This file is part of Astarte.
#
# Copyright 2024 SECO Mind Srl
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.
#
# SPDX-License-Identifier: LGPL-2.1-or-later OR Apache-2.0
#

description: Example for on board registration using a JWT
dependencies:
idf: ">=4.4"
astarte-platform/astarte-device-sdk-esp32:
version: '1.3.1'
override_path: '../../../' # three levels up, pointing the directory with the component itself
2 changes: 0 additions & 2 deletions examples/toggle_led/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,4 @@ cmake_minimum_required(VERSION 3.5)

include($ENV{IDF_PATH}/tools/cmake/project.cmake)

set(EXTRA_COMPONENT_DIRS ${CMAKE_SOURCE_DIR}/../..)

project(toggle-led)
26 changes: 26 additions & 0 deletions examples/toggle_led/main/idf_component.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
#
# This file is part of Astarte.
#
# Copyright 2024 SECO Mind Srl
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.
#
# SPDX-License-Identifier: LGPL-2.1-or-later OR Apache-2.0
#

description: Example with a led toggle for visual demonstration
dependencies:
idf: ">=4.4"
astarte-platform/astarte-device-sdk-esp32:
version: '1.3.1'
override_path: '../../../' # three levels up, pointing the directory with the component itself
11 changes: 7 additions & 4 deletions idf_component.yml
Original file line number Diff line number Diff line change
Expand Up @@ -20,8 +20,13 @@

version: "1.3.1"
description: "A component that provides communication and pairing primitives to an Astarte cluster"
url: "https://github.com/astarte-platform/astarte-device-sdk-esp32"
documentation: "https://docs.astarte-platform.org/device-sdks/esp32/1.3/api"
repository: "https://github.com/astarte-platform/astarte-device-sdk-esp32.git"
url: "https://docs.astarte-platform.org/"
documentation: "https://docs.astarte-platform.org/device-sdks/index.html"
license: "Apache-2.0"
maintainers:
- Simone Orru <simone.orru@secomind.com>
- Antonio Gisondi <antonio.gisondi@secomind.com>

tags:
- sdk
Expand All @@ -38,8 +43,6 @@ files:
exclude:
- "doc/**/*"
- "doc"
- "examples/**/*"
- "examples"
- "python_scripts/**/*"
- "python_scripts"
- "tests/**/*"
Expand Down

0 comments on commit 8735d21

Please sign in to comment.