- try fixing deploy

pull/59/head
Simon G 3 years ago committed by GitHub
parent b8ce7c8b58
commit ac73aef3a9
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 16
      .github/workflows/deploy.yml

@ -16,10 +16,9 @@ jobs:
- name: Deploy to NuGet Gallery - name: Deploy to NuGet Gallery
env: env:
NUGET_KEY: ${{ secrets.NUGET_KEY }} NUGET_KEY: ${{ secrets.NUGET_KEY }}
run: - run: dotnet pack -c Release
dotnet pack -c Release - run: cd bin\Release
cd bin\Release - run: dotnet nuget push LightweightIocContainer.*.nupkg -k NUGET_KEY -s https://api.nuget.org/v3/index.json
dotnet nuget push LightweightIocContainer.*.nupkg -k NUGET_KEY -s https://api.nuget.org/v3/index.json
github: github:
name: GitHub name: GitHub
@ -34,8 +33,7 @@ jobs:
- name: Deploy to GitHub Package Registry - name: Deploy to GitHub Package Registry
env: env:
GH_PACKAGE_REGISTRY_KEY: ${{ secrets.GH_PACKAGE_REGISTRY_KEY }} GH_PACKAGE_REGISTRY_KEY: ${{ secrets.GH_PACKAGE_REGISTRY_KEY }}
run: - run: dotnet pack -c Release
dotnet pack -c Release - run: nuget sources Add -Name "GithubPackageRegistry" -Source "https://nuget.pkg.github.com/SimonG96/index.json" -UserName SimonG96 -Password GH_PACKAGE_REGISTRY_KEY
nuget sources Add -Name "GithubPackageRegistry" -Source "https://nuget.pkg.github.com/SimonG96/index.json" -UserName SimonG96 -Password GH_PACKAGE_REGISTRY_KEY - run: cd bin\Release
cd bin\Release - run: dotnet nuget push LightweightIocContainer.*.nupkg -Source "GithubPackageRegistry"
dotnet nuget push LightweightIocContainer.*.nupkg -Source "GithubPackageRegistry"

Loading…
Cancel
Save