Skip to content

Commit 03f16b7

Browse files
committed
Fix package publishing for winforms
1 parent 2eea502 commit 03f16b7

File tree

1 file changed

+9
-21
lines changed

1 file changed

+9
-21
lines changed

.github/workflows/publish-nuget.yml

+9-21
Original file line numberDiff line numberDiff line change
@@ -157,29 +157,17 @@ jobs:
157157
PACKAGE_NAME: NetSparkleUpdater.UI.Avalonia
158158
INCLUDE_SYMBOLS: true
159159

160-
- name: Publish NetSparkleUpdater.UI.WinForms (NetCore) on version change
161-
uses: nitz/publish-nuget@60fd3adf9d9eecc3bbf8a98738734d3061347172
162-
with:
163-
PROJECT_FILE_PATH: ${{ github.workspace }}/src/NetSparkle.UI.WinForms/NetSparkle.UI.WinForms.csproj # Relative to repository root
164-
# VERSION_FILE_PATH: Directory.Build.props # Filepath with version info, relative to repository root. Defaults to project file
165-
# VERSION_REGEX: <Version>(.*)<\/Version> # Regex pattern to extract version info in a capturing group
166-
TAG_COMMIT: false # Flag to enable / disalge git tagging
167-
# TAG_FORMAT: v* # Format of the git tag, [*] gets replaced with version
168-
NUGET_KEY: ${{secrets.NUGET_API_KEY}} # nuget.org API key
169-
PACKAGE_NAME: NetSparkleUpdater.UI.WinForms.NetCore
170-
INCLUDE_SYMBOLS: true
160+
- name: Publish NetSparkleUpdater.UI.WinForms.NetCore on version change
161+
run: |
162+
dotnet build -c Release ${{ github.workspace }}/src/NetSparkle.UI.WinForms/NetSparkle.UI.WinForms.csproj
163+
dotnet pack -p:PackageID=NetSparkleUpdater.UI.WinForms.NetCore --include-symbols -p:SymbolPackageFormat=snupkg --no-build -c Release ${{ github.workspace }}/src/NetSparkle.UI.WinForms/NetSparkle.UI.WinForms.csproj -o ./WinFormsNetCore
164+
dotnet nuget push ./WinFormsNetCore/*.nupkg -s https://api.nuget.org/v3/index.json -k ${{secrets.NUGET_API_KEY}} --skip-duplicate
171165
172166
- name: Publish NetSparkleUpdater.UI.WinForms.NetFramework on version change
173-
uses: nitz/publish-nuget@60fd3adf9d9eecc3bbf8a98738734d3061347172
174-
with:
175-
PROJECT_FILE_PATH: ${{ github.workspace }}/src/NetSparkle.UI.WinForms/NetSparkle.UI.WinForms.csproj # Relative to repository root
176-
# VERSION_FILE_PATH: Directory.Build.props # Filepath with version info, relative to repository root. Defaults to project file
177-
# VERSION_REGEX: <Version>(.*)<\/Version> # Regex pattern to extract version info in a capturing group
178-
TAG_COMMIT: false # Flag to enable / disalge git tagging
179-
# TAG_FORMAT: v* # Format of the git tag, [*] gets replaced with version
180-
NUGET_KEY: ${{secrets.NUGET_API_KEY}} # nuget.org API key
181-
PACKAGE_NAME: NetSparkleUpdater.UI.WinForms.NetFramework
182-
INCLUDE_SYMBOLS: true
167+
run: |
168+
dotnet build -c Release ${{ github.workspace }}/src/NetSparkle.UI.WinForms/NetSparkle.UI.WinForms.csproj
169+
dotnet pack -p:PackageID=NetSparkleUpdater.UI.WinForms.NetFramework --include-symbols -p:SymbolPackageFormat=snupkg --no-build -c Release ${{ github.workspace }}/src/NetSparkle.UI.WinForms/NetSparkle.UI.WinForms.csproj -o ./WinFormsNetFramework
170+
dotnet nuget push ./WinFormsNetFramework/*.nupkg -s https://api.nuget.org/v3/index.json -k ${{secrets.NUGET_API_KEY}} --skip-duplicate
183171
184172
- name: Publish NetSparkleUpdater.Tools.DSAHelper
185173
uses: nitz/publish-nuget@60fd3adf9d9eecc3bbf8a98738734d3061347172

0 commit comments

Comments
 (0)