Skip to content

Commit da39aae

Browse files
committed
Separate build steps
1 parent ae4a707 commit da39aae

File tree

1 file changed

+10
-4
lines changed

1 file changed

+10
-4
lines changed

.github/workflows/ci.yml

Lines changed: 10 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -93,17 +93,23 @@ jobs:
9393

9494
- name: Restore dependencies
9595
run: dotnet restore
96-
- name: Build solution and generate NuGet package
96+
97+
- name: Build Meshtastic.Cli and generate NuGet package
9798
run: |
9899
dotnet build -c Release -p:AssemblyVersion=${{ steps.version.outputs.version }} -p:Version=${{ steps.version.outputs.version }} ./Meshtastic.Cli/Meshtastic.Cli.csproj
99100
dotnet pack -c Release -p:AssemblyVersion=${{ steps.version.outputs.version }} -p:Version=${{ steps.version.outputs.version }} ./Meshtastic.Cli/Meshtastic.Cli.csproj
100101
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-
104102
- name: Publish Meshtastic.Cli package to nuget
105103
run: dotnet nuget push ./**/Meshtastic.Cli.*.nupkg --skip-duplicate -k ${{secrets.NUGET_TOKEN}} --source https://api.nuget.org/v3/index.json
106104

105+
- name: Build Meshtastic and generate NuGet package
106+
run: |
107+
dotnet build -c Release -p:AssemblyVersion=${{ steps.version.outputs.version }} -p:Version=${{ steps.version.outputs.version }} ./Meshtastic/Meshtastic.csproj
108+
dotnet pack -c Release -p:AssemblyVersion=${{ steps.version.outputs.version }} -p:Version=${{ steps.version.outputs.version }} ./Meshtastic/Meshtastic.csproj
109+
110+
- name: Publish Meshtastic library package to nuget
111+
run: dotnet nuget push ./Meshtastic/**/Meshtastic.*.nupkg --skip-duplicate -k ${{secrets.NUGET_TOKEN}} --source https://api.nuget.org/v3/index.json
112+
107113
- name: Publish self-contained win-x64
108114
run: dotnet publish ./Meshtastic.Cli/Meshtastic.Cli.csproj -c Release -r win-x64 -o win-x64 --self-contained true -p:IncludeAllContentForSelfExtract=True -p:PublishSingleFile=True -p:AssemblyVersion=${{ steps.version.outputs.version }} -p:Version=${{ steps.version.outputs.version }}
109115

0 commit comments

Comments
 (0)