Skip to content

LightweightIocContainer Version 4.4.0-beta #45

LightweightIocContainer Version 4.4.0-beta

LightweightIocContainer Version 4.4.0-beta #45

Workflow file for this run

name: Deploy
on:
release:
types: [published]
jobs:
Deploy:
name: Deploy
runs-on: windows-latest
steps:
- name: Checkout
uses: actions/checkout@v1
- uses: actions/setup-dotnet@v1
with:
dotnet-version: '9.0.x'
- name: Build
run: dotnet build -c Release -o output
- name: Deploy to nuGet gallery
env:
NUGET_KEY: ${{ secrets.NUGET_KEY }}
run: dotnet nuget push output\LightweightIocContainer.*.nupkg -k $env:NUGET_KEY -s https://api.nuget.org/v3/index.json
- name: Deploy to gitHub package registry
env:
GH_PACKAGE_REGISTRY_KEY: ${{ secrets.GH_PACKAGE_REGISTRY_KEY }}
run: |
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 output\LightweightIocContainer.*.nupkg -s "GithubPackageRegistry"
- name: Upload the artifacts to github release
uses: AButler/upload-release-assets@v2.0
with:
files: 'output/LightweightIocContainer*nupkg'
repo-token: ${{ secrets.GITHUB_TOKEN }}