Add backwards compatibility to net framework 4.8 #160
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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}} |