Skip to content

Add backwards compatibility to net framework 4.8 #160

Add backwards compatibility to net framework 4.8

Add backwards compatibility to net framework 4.8 #160

Workflow file for this run

name: .NET Core - CD
on:
push:
branches: [ master ]
pull_request:
branches: [ master ]
jobs:
publish:
runs-on: ubuntu-latest
env:
PATTERN: ${{ github.event.number == 0 && '**/*.nupkg' || '**/*-beta*.nupkg' }}
PUSH_ARGS: ${{ github.event.number == 0 && '' || '--no-symbols' }}
steps:
- uses: actions/checkout@v3
- name: Setup dotnet
uses: actions/setup-dotnet@v3
with:
dotnet-version: '6.0.x'
- name: Pack
run: dotnet pack -c Release
- name: Check packages
id: check_packages
uses: andstor/file-existence-action@v2
with:
files: ${{env.PATTERN}}
- name: Push
if: steps.check_packages.outputs.files_exists == 'true'
run: dotnet nuget push ${{env.PATTERN}} --skip-duplicate -s https://api.nuget.org/v3/index.json -k ${{secrets.NUGET_API_KEY}} ${{env.PUSH_ARGS}}