Skip to content

Public Register() + new Configure() (#2) #12

Public Register() + new Configure() (#2)

Public Register() + new Configure() (#2) #12

name: .NET Core - Build and push
on:
push:
branches: [ main ]
name: .NET Core - Build only

Check failure on line 7 in .github/workflows/dotnet-publish.yml

View workflow run for this annotation

GitHub Actions / .github/workflows/dotnet-publish.yml

Invalid workflow file

You have an error in your yaml syntax on line 7
on:
pull_request:
branches: [ main ]
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Setup .NET Core
uses: actions/setup-dotnet@v1
with:
dotnet-version: 8.0.x
- name: Install dependencies
run: dotnet restore
- name: Build
run: dotnet build --configuration Release --no-restore
- name: Test
run: dotnet test --no-restore --verbosity normal
- name: Pack
run: dotnet pack --include-symbols -p:SymbolPackageFormat=snupkg --no-build -c Release -o .
- uses: actions/upload-artifact@v4
with:
name: nuget-packages
path: |
**/*.nupkg
**/*.snupkg
- name: Publish
env:
NUGET_API_KEY: ${{ secrets.NUGET_API_KEY }}
run: dotnet nuget push "*.nupkg" -s https://api.nuget.org/v3/index.json -k $NUGET_API_KEY --skip-duplicate