- remove nuget and add github job

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

@ -3,29 +3,29 @@ name: Deploy
on: [release]
jobs:
nuget:
name: NuGet
runs-on: windows-latest
steps:
- name: Deploy to NuGet Gallery
env:
NUGET_KEY: ${{ secrets.NUGET_KEY }}
run:
dotnet pack -c Release
cd bin\Release
dotnet nuget push LightweightIocContainer.*.nupkg -k NUGET_KEY -s https://api.nuget.org/v3/index.json
# github:
# name: GitHub
# nuget:
# name: NuGet
# runs-on: windows-latest
# steps:
# - name: Deploy to GitHub Package Registry
# - name: Deploy to NuGet Gallery
# env:
# GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
# NUGET_KEY: ${{ secrets.NUGET_KEY }}
# run:
# dotnet pack -c Release
# nuget sources Add -Name "GithubPackageRegistry" -Source "https://nuget.pkg.github.com/OWNER/index.json" -UserName SimonG96 -Password GITHUB_TOKEN
# cd bin\Release
# dotnet nuget push LightweightIocContainer.*.nupkg -Source "GithubPackageRegistry"
# dotnet nuget push LightweightIocContainer.*.nupkg -k NUGET_KEY -s https://api.nuget.org/v3/index.json
github:
name: GitHub
runs-on: windows-latest
steps:
- name: Deploy to GitHub Package Registry
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
run:
dotnet pack -c Release
nuget sources Add -Name "GithubPackageRegistry" -Source "https://nuget.pkg.github.com/OWNER/index.json" -UserName SimonG96 -Password GITHUB_TOKEN
cd bin\Release
dotnet nuget push LightweightIocContainer.*.nupkg -Source "GithubPackageRegistry"

Loading…
Cancel
Save