Skip to content

test pipeline again #34

test pipeline again

test pipeline again #34

Workflow file for this run

name: dotnet package
on: [push]
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: Setup .NET Core SDK
uses: actions/setup-dotnet@v3
with:
dotnet-version: |
8
9
- 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: Nuget
if: startsWith(github.ref, 'refs/heads/main')
run: dotnet nuget push ./CodeQualityToGitlab/nupkg/CodeQualityToGitlab.*.nupkg --source 'https://api.nuget.org/v3/index.json' --api-key ${{secrets.NUGET_API_KEY}}