Skip to content

Commit 0004f9a

Browse files
committed
测试发布
1 parent 2379184 commit 0004f9a

File tree

2 files changed

+1
-40
lines changed

2 files changed

+1
-40
lines changed

.github/workflows/nuget-publish.yml

Lines changed: 0 additions & 39 deletions
Original file line numberDiff line numberDiff line change
@@ -94,42 +94,3 @@ jobs:
9494
}
9595
env:
9696
NUGET_API_KEY: ${{ secrets.NUGET_API_KEY }}
97-
98-
publish-github:
99-
needs: build-and-test
100-
runs-on: windows-latest
101-
if: github.event_name == 'push' && (github.ref == 'refs/heads/main' || github.ref == 'refs/heads/master')
102-
103-
steps:
104-
- name: Download NuGet package artifact
105-
uses: actions/download-artifact@v4
106-
with:
107-
name: nuget-package
108-
path: ./packages
109-
110-
- name: Setup .NET
111-
uses: actions/setup-dotnet@v4
112-
with:
113-
dotnet-version: ${{ env.DOTNET_VERSION }}
114-
115-
- name: Verify packages exist
116-
run: |
117-
if (-not (Test-Path "./packages/*.nupkg")) {
118-
Write-Error "No .nupkg files found in ./packages directory"
119-
Get-ChildItem -Path "./packages" -Recurse
120-
exit 1
121-
}
122-
Write-Host "Found packages:"
123-
Get-ChildItem -Path "./packages" -Filter "*.nupkg"
124-
125-
- name: Publish to GitHub Packages
126-
run: |
127-
$nupkgFiles = Get-ChildItem -Path "./packages" -Filter "*.nupkg"
128-
foreach ($file in $nupkgFiles) {
129-
dotnet nuget push $file.FullName `
130-
--api-key ${{ secrets.GITHUB_TOKEN }} `
131-
--source https://nuget.pkg.github.com/${{ github.repository_owner }}/index.json `
132-
--skip-duplicate
133-
}
134-
env:
135-
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

Directory.Build.props

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
<Project>
22
<PropertyGroup>
3-
<Version>1.0.5</Version>
3+
<Version>1.0.6</Version>
44
<CheckForOverflowUnderflow>false</CheckForOverflowUnderflow>
55
<AllowUnsafeBlocks>true</AllowUnsafeBlocks>
66
<LangVersion>preview</LangVersion>

0 commit comments

Comments
 (0)