Skip to content

Commit

Permalink
Not pushing to NuGet temporarily in publish-nuget to test error handling
Browse files Browse the repository at this point in the history
  • Loading branch information
Piedone committed Mar 30, 2023
1 parent 8482e67 commit 8fd27da
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 23 deletions.
22 changes: 0 additions & 22 deletions .github/actions/publish-nuget/action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -178,25 +178,3 @@ runs:
"-p:EnablePackageValidation=true"
)
- name: Push with dotnet
shell: pwsh
run: dotnet nuget push artifacts/*.nupkg --api-key $Env:API_KEY --source '${{ steps.setup.outputs.source-url }}' --skip-duplicate

- name: Publish Artifacts
uses: actions/upload-artifact@v3.1.1
with:
name: NuGet-Package
path: artifacts
retention-days: ${{ inputs.nuget-artifact-retention-days }}

# This is not in its own action because it's all very specific to this NuGet publishing.
- name: Create Release
# v1.11.2
uses: ncipollo/release-action@18eadf9c9b0f226f47f164f5373c6a44f0aae169
# This is to prevent creating releases when pushing tags for issue-specific pre-releases like
# v4.3.1-alpha.osoe-86.
if: "!contains(steps.setup.outputs.publish-version, '-')"
with:
allowUpdates: true
generateReleaseNotes: true
artifacts: artifacts/*.nupkg, artifacts/*.snupkg
2 changes: 1 addition & 1 deletion .github/workflows/publish-nuget.yml
Original file line number Diff line number Diff line change
Expand Up @@ -84,7 +84,7 @@ jobs:
dotnet-version: ${{ inputs.dotnet-version }}

- name: Publish to NuGet
uses: Lombiq/GitHub-Actions/.github/actions/publish-nuget@dev
uses: Lombiq/GitHub-Actions/.github/actions/publish-nuget@issue/OSOE-566
with:
source: ${{ inputs.source }}
verbosity: ${{ inputs.verbosity }}
Expand Down

0 comments on commit 8fd27da

Please sign in to comment.