You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
39 lines
1.1 KiB
39 lines
1.1 KiB
name: Deploy
|
|
|
|
on: [release]
|
|
|
|
jobs:
|
|
nuget:
|
|
name: NuGet
|
|
runs-on: windows-latest
|
|
|
|
steps:
|
|
- name: Checkout
|
|
uses: actions/checkout@v1
|
|
- uses: actions/setup-dotnet@v1
|
|
with:
|
|
dotnet-version: '6.0.x'
|
|
- name: Deploy to NuGet Gallery
|
|
env:
|
|
NUGET_KEY: ${{ secrets.NUGET_KEY }}
|
|
- run: dotnet pack -c Release
|
|
- run: cd bin\Release
|
|
- run: 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: Checkout
|
|
uses: actions/checkout@v1
|
|
- uses: actions/setup-dotnet@v1
|
|
with:
|
|
dotnet-version: '6.0.x'
|
|
- name: Deploy to GitHub Package Registry
|
|
env:
|
|
GH_PACKAGE_REGISTRY_KEY: ${{ secrets.GH_PACKAGE_REGISTRY_KEY }}
|
|
- run: 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
|
|
- run: cd bin\Release
|
|
- run: dotnet nuget push LightweightIocContainer.*.nupkg -Source "GithubPackageRegistry"
|
|
|