Skip to content

Create packages v1.0.74 #48

Create packages v1.0.74

Create packages v1.0.74 #48

name: Create package
on:
pull_request:
branches: [typed]
types: [closed]
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: Setup .NET
uses: actions/setup-dotnet@v2
with:
dotnet-version: |
6.0.x
7.0.x
8.0.x
- name: Restore dependencies
run: dotnet restore
- name: Build
run: dotnet build --no-restore
- name: Run tests
run: dotnet test
- name: Create packages
run: |
dotnet pack -c Release -o pkg
- name: Push package to Nuget registry
run: |
cd ./pkg
dotnet nuget push *.nupkg -k ${NUGET_KEY} -s https://api.nuget.org/v3/index.json --skip-duplicate --no-symbols
env:
NUGET_KEY: ${{ secrets.NUGET_KEY }}