Skip to content

Fixed syntax error

Fixed syntax error #25

Workflow file for this run

# This workflow will build a .NET project
# For more information see: https://docs.github.com/en/actions/automating-builds-and-tests/building-and-testing-net
name: Tests and publish
on:
push:
branches: [ "master" ]
pull_request:
branches: [ "master" ]
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Setup .NET
uses: actions/setup-dotnet@v3
with:
dotnet-version: 6.0.x
- name: Restore dependencies
run: dotnet restore
- name: Set version from version.md
id: set_version
run: echo "VersionPrefix=$(cat version.md)" >> $GITHUB_ENV
- name: Build
run: dotnet build -c Release --no-restore
- name: Test
run: dotnet test UniqModel.Tests/UniqModel.Tests.csproj -c Release --verbosity normal
- name: Publish the package to GPR
run: |
dotnet nuget push UniqModel/bin/Release/*.nupkg --source https://api.nuget.org/v3/index.json --skip-duplicate --api-key ${{secrets.NUGET_API_KEY}}