Skip to content

Commit ece3cc5

Browse files
committed
Forward changes from release-0.7.2
2 parents 2f173e4 + 4eee646 commit ece3cc5

File tree

5 files changed

+88
-1
lines changed

5 files changed

+88
-1
lines changed

.github/workflows/release.yaml

Lines changed: 54 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,54 @@
1+
#
2+
# This file is part of Astarte.
3+
#
4+
# Copyright 2025 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: Release to NuGet
22+
23+
on:
24+
release:
25+
types:
26+
- published
27+
28+
jobs:
29+
build:
30+
runs-on: ubuntu-latest
31+
timeout-minutes: 5
32+
steps:
33+
- name: Checkout
34+
uses: actions/checkout@v4
35+
36+
- name: Setup .NET SDK
37+
uses: actions/setup-dotnet@v3
38+
with:
39+
dotnet-version: '6.0.x'
40+
41+
- name: Set VERSION variable from tag
42+
run: echo "VERSION=${GITHUB_REF_NAME#v}" >> $GITHUB_ENV
43+
44+
- name: Build
45+
run: dotnet build AstarteDeviceSDKCSharp/AstarteDeviceSDKCSharp.csproj -c Release /p:Version=${VERSION}
46+
47+
- name: Test
48+
run: dotnet test AstarteDeviceSDKCSharp.Tests/AstarteDeviceSDKCSharp.Tests.csproj -c Release /p:Version=${VERSION}
49+
50+
- name: Pack nugets
51+
run: dotnet pack AstarteDeviceSDKCSharp/AstarteDeviceSDKCSharp.csproj -c Release /p:Version=${VERSION} --no-build --output .
52+
53+
- name: Push to NuGet
54+
run: dotnet nuget push "*.nupkg" --api-key ${{secrets.NUGET_API_KEY}} --source https://api.nuget.org/v3/index.json

.reuse/dep5

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,3 +17,7 @@ License: CC0-1.0
1717
Files: AstarteDeviceSDKCSharpE2E.Tests/xunit.runner.json
1818
Copyright: SECO Mind Srl
1919
License: CC0-1.0
20+
21+
Files: Images/*
22+
Copyright: SECO Mind Srl
23+
License: CC0-1.0

AstarteDeviceSDKCSharp/AstarteDeviceSDKCSharp.csproj

Lines changed: 26 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,20 @@ SPDX-License-Identifier: Apache-2.0 -->
1111
<RootNamespace>AstarteDeviceSDKCSharp</RootNamespace>
1212
<ImplicitUsings>enable</ImplicitUsings>
1313
<Nullable>enable</Nullable>
14-
<Version>0.7.1</Version>
14+
<Version>0.7.2</Version>
15+
<PackageId>Astarte.Device.SDK</PackageId>
16+
<RepositoryType>git</RepositoryType>
17+
<Description>The Astarte Device SDK for C# is a ready-to-use library that provides communication and pairing primitives to an Astarte Cluster.</Description>
18+
<PublishRepositoryUrl>true</PublishRepositoryUrl>
19+
<IncludeSymbols>true</IncludeSymbols>
20+
<SymbolPackageFormat>snupkg</SymbolPackageFormat>
21+
<Copyright>Copyright 2025 Seco Mind Srl</Copyright>
22+
<PackageProjectUrl>https://docs.astarte-platform.org/device-sdks/common/get_started/csharp.html</PackageProjectUrl>
23+
<RepositoryUrl>https://github.com/astarte-platform/astarte-device-sdk-csharp.git</RepositoryUrl>
24+
<PackageLicenseExpression>Apache-2.0</PackageLicenseExpression>
25+
<PackageTags>astarte iot sdk</PackageTags>
26+
<PackageReadmeFile>README.md</PackageReadmeFile>
27+
<PackageIcon>nuget_icon.png</PackageIcon>
1528
</PropertyGroup>
1629

1730
<ItemGroup>
@@ -39,6 +52,18 @@ SPDX-License-Identifier: Apache-2.0 -->
3952
<PackageReference Include="Newtonsoft.Json" Version="13.0.2" />
4053
<PackageReference Include="Newtonsoft.Json.Bson" Version="1.0.2" />
4154
<PackageReference Include="System.IdentityModel.Tokens.Jwt" Version="6.25.1" />
55+
<PackageReference Include="Microsoft.SourceLink.GitHub" Version="8.0.0" PrivateAssets="All"/>
56+
</ItemGroup>
57+
58+
<ItemGroup>
59+
<None Include="../README.md">
60+
<Pack>True</Pack>
61+
<PackagePath>\</PackagePath>
62+
</None>
63+
<None Include="../Images/nuget_icon.png">
64+
<Pack>True</Pack>
65+
<PackagePath>\</PackagePath>
66+
</None>
4267
</ItemGroup>
4368

4469
</Project>

CHANGELOG.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,10 @@ All notable changes to this project will be documented in this file.
44
The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
55
and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
66

7+
## [0.7.2] - 2025-11-28
8+
### Added
9+
- Added support for NuGet package publishing.
10+
711
## [0.7.1] - 2024-02-27
812
### Fixed
913
- Skip SSL certificate validation on HTTP requests if `ignoreSSLErrors`

Images/nuget_icon.png

3 KB
Loading

0 commit comments

Comments
 (0)