Skip to content

background work for restriction base type #22

background work for restriction base type

background work for restriction base type #22

Workflow file for this run

# yaml-language-server: $schema=https://json.schemastore.org/github-workflow.json
name: build
on:
workflow_dispatch: # Allow running the workflow manually from the GitHub UI
push:
branches: [ "main" ] # Run the workflow when pushing to the main branch
pull_request:
branches: [ "*" ] # Run the workflow for all pull requests
jobs:
build:
strategy:
matrix:
configuration: [Release]
runs-on: ubuntu-latest # For a list of available runner types, refer to https://help.github.com/en/actions/reference/workflow-syntax-for-github-actions#jobsjob_idruns-on
steps:
- uses: actions/checkout@v3
- name: Setup .NET
uses: actions/setup-dotnet@v3
with:
dotnet-version: 7.0.x
- name: Restore dependencies
run: dotnet restore
- name: Build
run: dotnet build --no-restore
- name: Test
run: dotnet test --no-build --verbosity normal
- name: Publish
if: github.ref == 'refs/heads/main' && github.event_name != 'pull_request' && github.repository_owner == 'CBenghi' ## only if main and not a PR
run: dotnet nuget push **\*.nupkg -s https://api.nuget.org/v3/index.json -k ${{secrets.NUGET_API_KEY}} --skip-duplicate --force-english-output