Skip to content

small improvement in number handling #17

small improvement in number handling

small improvement in number handling #17

Workflow file for this run

name: Build test and publish
on:
push:
branches: [ master ]
paths:
- "**.nuspec"
pull_request:
branches: [ master ]
paths:
- "**.nuspec"
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: NuGet/[email protected]
with:
nuget-api-key: ${{secrets.NUGET_API_KEY}}
- name: Setup .NET
uses: actions/setup-dotnet@v1
with:
dotnet-version: 8.0.x
- name: Restore dependencies
run: dotnet restore
- name: Build
run: dotnet build --no-restore --configuration Release
- name: Test
run: dotnet test --no-build --verbosity normal --configuration Release
env:
TESTSECRET: ${{secrets.TESTSECRET}}
SQLCONNSTRING: ${{secrets.SQLCONNSTRING}}
- name: Generate executable (win)
run: dotnet publish Zoro/Zoro.csproj --configuration Release --runtime win-x64 /p:PublishSingleFile=true /p:IncludeNativeLibrariesForSelfExtract=true --self-contained true
- name: Generate executable (linux)
run: dotnet publish Zoro/Zoro.csproj --configuration Release --runtime linux-x64 /p:PublishSingleFile=true /p:IncludeNativeLibrariesForSelfExtract=true --self-contained true
- name: Pack
run: nuget pack Zoro.Processor/Dandraka.Zoro.nuspec
- name: Publish
run: nuget push Dandraka.Zoro.*.nupkg -Source https://www.nuget.org/api/v2/package