Skip to content

Commit

Permalink
Re-enable nuget/setup-nuget on release push for winforms
Browse files Browse the repository at this point in the history
  • Loading branch information
Deadpikle committed Jan 26, 2025
1 parent dd6be68 commit 24acfe5
Showing 1 changed file with 9 additions and 6 deletions.
15 changes: 9 additions & 6 deletions .github/workflows/publish-nuget.yml
Original file line number Diff line number Diff line change
Expand Up @@ -119,10 +119,10 @@ jobs:
if: github.ref == 'refs/heads/develop' || github.ref == 'refs/heads/avalonia-preview' || github.ref == 'refs/heads/versions/2.x'
steps:
- uses: actions/[email protected]
# - uses: nuget/setup-nuget@v2
# with:
# nuget-api-key: ${{secrets.NUGET_API_KEY}}
# nuget-version: '5.x'
- uses: nuget/setup-nuget@v2
with:
nuget-api-key: ${{secrets.NUGET_API_KEY}}
nuget-version: '5.x'

- name: Add MSBuild to PATH
uses: microsoft/[email protected]
Expand All @@ -135,7 +135,7 @@ jobs:
7.0.x
8.0.x
9.0.x
- name: Publish NetSparkleUpdater.SparkleUpdater on version change
uses: nitz/publish-nuget@60fd3adf9d9eecc3bbf8a98738734d3061347172
with:
Expand Down Expand Up @@ -212,11 +212,14 @@ jobs:
copy ${{ github.workspace }}/README.md ${{ github.workspace }}/nuget\winformsnetframework\README.md
copy ${{ github.workspace }}/src\NetSparkle\ArtWork\software-update-available.png ${{ github.workspace }}/nuget\winformsnetframework\software-update-available.png
# uncomment this and add it to following run if nuget/setup-nuget breaks on windows-latest
# nuget setApiKey ${{secrets.NUGET_API_KEY}}

- name: Publish NetSparkleUpdater.UI.WinForms.NetFramework
run: |
cd ${{ github.workspace }}/nuget/winformsnetframework
nuget pack NetSparkleUpdater.UI.WinForms.NetFramework.nuspec -verbosity detailed -Symbols -SymbolPackageFormat snupkg
nuget push *.nupkg -Source https://www.nuget.org/api/v2/package -SkipDuplicate -verbosity detailed
nuget push *.nupkg -Source https://api.nuget.org/v3/index.json -SkipDuplicate -verbosity detailed
cd ${{ github.workspace }}
- name: Publish NetSparkleUpdater.Tools.DSAHelper
Expand Down

0 comments on commit 24acfe5

Please sign in to comment.