A lightweight IOC Container that is powerful enough to do all the things you need it to do.
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.

44 lines
1.4 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 build -c Release -o nugetOut
dotnet nuget push nugetOut\LightweightIocContainer.*.nupkg -k $env: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 build -c Release -o githubOut
dotnet nuget add source "https://nuget.pkg.github.com/SimonG96/index.json" --name "GithubPackageRegistry" --username SimonG96 --password $env:GH_PACKAGE_REGISTRY_KEY
dotnet nuget push githubOut\LightweightIocContainer.*.nupkg -s "GithubPackageRegistry"
- name: Upload the artifacts to release
uses: AButler/upload-release-assets@v2.0
with:
files: 'githubOut\LightweightIocContainer.*nupkg'
repo-token: ${{ secrets.GITHUB_TOKEN }}