Skip to content

Remove dependency on UUIDNext #34

Remove dependency on UUIDNext

Remove dependency on UUIDNext #34

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: Build Core
on:
push:
branches:
- main
tags:
- 'typeid-core-v*'
paths:
- 'src/FastIDs.TypeId/**'
pull_request:
branches:
- main
paths:
- 'src/FastIDs.TypeId/**'
jobs:
build:
runs-on: ubuntu-latest
defaults:
run:
working-directory: ./src/FastIDs.TypeId
steps:
- uses: actions/checkout@v3
- name: Setup .NET
uses: actions/setup-dotnet@v3
with:
dotnet-version: 6.0.x
- name: Restore dependencies
run: dotnet restore
- name: Build
run: dotnet build --no-restore --configuration Release
- name: Test
run: dotnet test --no-restore --no-build --configuration Release
- name: Publish to NuGet
if: startsWith(github.ref, 'refs/tags/')
run: |
dotnet pack --no-build -c Release ./TypeId.Core -o .
dotnet nuget push *.nupkg -s https://api.nuget.org/v3/index.json -k ${{secrets.NUGET_API_KEY}} --skip-duplicate