Support underscores in type to comply with spec v0.3 #28
Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# 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 |