- try without any jobs

pull/32/head
Simon G 6 years ago committed by GitHub
parent d80d885d9a
commit d02b45c6d5
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 48
      .github/workflows/deploy.yml

@ -2,30 +2,30 @@ name: Deploy
on: [release] on: [release]
jobs: #jobs:
nuget: # nuget:
name: NuGet # name: NuGet
runs-on: windows-latest # runs-on: windows-latest
steps: # steps:
- 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
cd bin\Release # cd bin\Release
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
runs-on: windows-latest # runs-on: windows-latest
steps: # steps:
- name: Deploy to GitHub Package Registry # - name: Deploy to GitHub Package Registry
env: # env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} # GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
run: # run:
dotnet pack -c Release # dotnet pack -c Release
nuget sources Add -Name "GithubPackageRegistry" -Source "https://nuget.pkg.github.com/OWNER/index.json" -UserName SimonG96 -Password GITHUB_TOKEN # nuget sources Add -Name "GithubPackageRegistry" -Source "https://nuget.pkg.github.com/OWNER/index.json" -UserName SimonG96 -Password GITHUB_TOKEN
cd bin\Release # cd bin\Release
dotnet nuget push LightweightIocContainer.*.nupkg -Source "GithubPackageRegistry" # dotnet nuget push LightweightIocContainer.*.nupkg -Source "GithubPackageRegistry"

Loading…
Cancel
Save