Skip to content

Commit ae4a707

Browse files
authored
Merge pull request #56 from meshtastic/wip
Add Meshtastic core lib nuget package (hopefully)
2 parents 4fcc825 + 0daabdd commit ae4a707

File tree

3 files changed

+36
-10
lines changed

3 files changed

+36
-10
lines changed

.github/workflows/ci.yml

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -97,8 +97,11 @@ jobs:
9797
run: |
9898
dotnet build -c Release -p:AssemblyVersion=${{ steps.version.outputs.version }} -p:Version=${{ steps.version.outputs.version }} ./Meshtastic.Cli/Meshtastic.Cli.csproj
9999
dotnet pack -c Release -p:AssemblyVersion=${{ steps.version.outputs.version }} -p:Version=${{ steps.version.outputs.version }} ./Meshtastic.Cli/Meshtastic.Cli.csproj
100-
101-
- name: Publish package to nuget
100+
101+
- name: Publish Meshtastic library package to nuget
102+
run: dotnet nuget push ./**/Meshtastic.nupkg --skip-duplicate -k ${{secrets.NUGET_TOKEN}} --source https://api.nuget.org/v3/index.json
103+
104+
- name: Publish Meshtastic.Cli package to nuget
102105
run: dotnet nuget push ./**/Meshtastic.Cli.*.nupkg --skip-duplicate -k ${{secrets.NUGET_TOKEN}} --source https://api.nuget.org/v3/index.json
103106

104107
- name: Publish self-contained win-x64

Meshtastic.Cli/Meshtastic.Cli.csproj

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99
<PackAsTool>True</PackAsTool>
1010
<PackageIcon>logo.png</PackageIcon>
1111
<PackageReadmeFile>README.md</PackageReadmeFile>
12-
<RepositoryUrl>htt</RepositoryUrl>
12+
<RepositoryUrl>http://github.com/meshtastic/c-sharp</RepositoryUrl>
1313
<Company>Meshtastic LLC</Company>
1414
<Title>Meshtastic CLI</Title>
1515
<IncludeSymbols>True</IncludeSymbols>

Meshtastic/Meshtastic.csproj

Lines changed: 30 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,33 @@
11
<Project Sdk="Microsoft.NET.Sdk">
22

3-
<PropertyGroup>
4-
<TargetFramework>net7.0</TargetFramework>
5-
<ImplicitUsings>enable</ImplicitUsings>
6-
<Nullable>enable</Nullable>
7-
</PropertyGroup>
3+
<PropertyGroup>
4+
<TargetFramework>net7.0</TargetFramework>
5+
<ImplicitUsings>enable</ImplicitUsings>
6+
<Nullable>enable</Nullable>
7+
<RootNamespace>Meshtastic</RootNamespace>
8+
<PackageIcon>logo.png</PackageIcon>
9+
<RepositoryUrl>http://github.com/meshtastic/c-sharp</RepositoryUrl>
10+
<Company>Meshtastic LLC</Company>
11+
<Title>Meshtastic C#</Title>
12+
<IncludeSymbols>True</IncludeSymbols>
13+
<DebugType>embedded</DebugType>
14+
<PackageLicenseFile>LICENSE</PackageLicenseFile>
15+
</PropertyGroup>
16+
17+
<ItemGroup>
18+
<None Include="..\LICENSE">
19+
<Pack>True</Pack>
20+
<PackagePath>\</PackagePath>
21+
</None>
22+
<None Include="..\logo.png">
23+
<Pack>True</Pack>
24+
<PackagePath>\</PackagePath>
25+
</None>
26+
<None Include="..\README.md">
27+
<Pack>True</Pack>
28+
<PackagePath>\</PackagePath>
29+
</None>
30+
</ItemGroup>
831

932

1033
<ItemGroup>
@@ -19,7 +42,7 @@
1942

2043

2144
<ItemGroup>
22-
<Folder Include="Generated\" />
45+
<Folder Include="Generated\" />
2346
</ItemGroup>
2447

25-
</Project>
48+
</Project>

0 commit comments

Comments
 (0)