Skip to content
This repository has been archived by the owner on Oct 26, 2022. It is now read-only.

[BUG] Unrecognized option '--skip-duplicate' #51

Open
TheBeachMaster opened this issue Nov 2, 2020 · 2 comments
Open

[BUG] Unrecognized option '--skip-duplicate' #51

TheBeachMaster opened this issue Nov 2, 2020 · 2 comments
Assignees
Labels
bug Something isn't working

Comments

@TheBeachMaster
Copy link

Describe the bug
This is somewhat similar to #37 .

Given that #37 was closed with a link to #4864 and commit c12b854

I have still encountered this issue trying to publish to Nuget with the following error

Generated Package(s): AfricasTalking.NET.1.2.1.nupkg
executing: [dotnet nuget push *.nupkg -s https://api.nuget.org/v3/index.json -k *** --skip-duplicate -n 1]
Specify --help for a list of available options and commands.
error: Unrecognized option '--skip-duplicate

Failed Action Log URL (Required)
https://github.com/AfricasTalkingLtd/africastalking.Net/actions/runs/342255796

To Reproduce
Steps to reproduce the behavior:

  1. In your workflows/steps.yml add the following
name: .NETBuild

on:
  push:
    branches: [ master ]

jobs:
  build:

    runs-on: windows-latest
    strategy:
      matrix:
        dotnet: [ '2.2.103', '3.0', '3.1.x' ]
    name: Build ${{ matrix.dotnet }}
    steps:
    - uses: actions/checkout@v2
    - name: Setup .NET Core
      uses: actions/setup-dotnet@v1
      with:
        dotnet-version: ${{ matrix.dotnet }}
    - name: Install dependencies
      run: dotnet restore
    - name: Build
      run: dotnet build --configuration Release --no-restore
    - name: Test
      run: dotnet test --no-restore --verbosity normal
    - name: Publish Package
      uses: rohith/publish-nuget@v2
      with:
          PROJECT_FILE_PATH: AfricasTalkingCS/AfricasTalkingCS.csproj  ## Change to something else
          NUGET_KEY: ${{secrets.NUGET_API_KEY}} ## Change to something else
          PACKAGE_NAME: AfricasTalking.NET ## Change to something else

Expected Behavior
Successful push to Nuget like https://github.com/AfricasTalkingLtd/africastalking.Net/actions/runs/184718535

Environment:

@TheBeachMaster
Copy link
Author

Update: It somehow worked https://github.com/AfricasTalkingLtd/africastalking.Net/runs/1346457611

Closing ...

@silasary
Copy link

silasary commented Nov 5, 2020

I'm still experiencing this: https://github.com/PennyDreadfulMTG/GatherlingClient/runs/1356350991

Generated Package(s): Gatherling.1.0.25.nupkg, Gatherling.1.0.25.snupkg
executing: [dotnet nuget push *.nupkg -s https://api.nuget.org/v3/index.json -k *** --skip-duplicate ]
Specify --help for a list of available options and commands.
error: Unrecognized option '--skip-duplicate'

Error: 😭 error: Unrecognized option '--skip-duplicate'

@TheBeachMaster TheBeachMaster reopened this Nov 5, 2020
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

3 participants