Skip to content

Commit cf78bd8

Browse files
committed
Update .gitignore and NuGet config for native and Python artifacts
- Add .dotnet/, NuGet, and Python SDK build outputs to .gitignore - Add .nuget/NuGet/NuGet.Config for local NuGet sources - Change NuGet artifact extraction path in release workflow - Update SmbCloud.Cli.csproj to adjust native file packing - Add .venv/ to Python SDK .gitignore
1 parent 14f8604 commit cf78bd8

5 files changed

Lines changed: 23 additions & 3 deletions

File tree

.github/workflows/release-nuget.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -148,7 +148,7 @@ jobs:
148148
uses: actions/download-artifact@v7
149149
with:
150150
pattern: nuget-native-*
151-
path: nuget/smbcloud-cli
151+
path: nuget/smbcloud-cli/native
152152
merge-multiple: true
153153

154154
- name: Setup .NET SDK

.gitignore

Lines changed: 14 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,10 +5,23 @@
55
.zed
66
.vscode
77

8+
# Local .NET CLI state
9+
/.dotnet/
10+
811
# Secrets
912
.env
13+
1014
# Generated npm release artifacts
1115
/npm/cli-*/
12-
# Generated PyPI release artifacts
16+
17+
# Generated Python release artifacts
1318
/pypi/dist/
1419
/pypi/.venv/
20+
/sdk/python/dist/
21+
/sdk/python/.venv/
22+
23+
# Generated NuGet release artifacts
24+
/nuget/dist/
25+
/nuget/smbcloud-cli/bin/
26+
/nuget/smbcloud-cli/obj/
27+
/nuget/smbcloud-cli/native/

.nuget/NuGet/NuGet.Config

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
<?xml version="1.0" encoding="utf-8"?>
2+
<configuration>
3+
<packageSources>
4+
<add key="nuget.org" value="https://api.nuget.org/v3/index.json" protocolVersion="3" />
5+
</packageSources>
6+
</configuration>

nuget/smbcloud-cli/SmbCloud.Cli.csproj

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,6 @@
2121

2222
<ItemGroup>
2323
<None Include="README.md" Pack="true" PackagePath="" />
24-
<None Include="native/**/*" Pack="true" PackagePath="tools/$(TargetFramework)/any/native/%(RecursiveDir)%(Filename)%(Extension)" CopyToOutputDirectory="PreserveNewest" Visible="false" />
24+
<Content Include="native/**/*" CopyToOutputDirectory="PreserveNewest" CopyToPublishDirectory="PreserveNewest" Pack="false" Visible="false" />
2525
</ItemGroup>
2626
</Project>

sdk/python/.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1 +1,2 @@
11
dist/
2+
.venv/

0 commit comments

Comments
 (0)