- try fixing deploy

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

@ -17,9 +17,8 @@ jobs:
env: env:
NUGET_KEY: ${{ secrets.NUGET_KEY }} NUGET_KEY: ${{ secrets.NUGET_KEY }}
run: | run: |
dotnet pack -c Release dotnet pack -c Release -o nugetOut
cd bin\Release dotnet nuget push nugetOut\LightweightIocContainer.*.nupkg -k $env: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
@ -35,7 +34,12 @@ jobs:
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 -o githubOut
nuget sources Add -Name "GithubPackageRegistry" -Source "https://nuget.pkg.github.com/SimonG96/index.json" -UserName SimonG96 -Password GH_PACKAGE_REGISTRY_KEY dotnet nuget add source "https://nuget.pkg.github.com/SimonG96/index.json" --name "GithubPackageRegistry" --username SimonG96 --password $env:GH_PACKAGE_REGISTRY_KEY
cd bin\Release dotnet nuget push githubOut\LightweightIocContainer.*.nupkg -s "GithubPackageRegistry"
dotnet nuget push LightweightIocContainer.*.nupkg -Source "GithubPackageRegistry" - name: Upload the artifacts to release
uses: skx/github-action-publish-binaries@master
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
args: 'LightweightIocContainer.*nupkg'

Loading…
Cancel
Save