processing empty text like "\r \r" (#49) #88
This file contains hidden or 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
| name: Publish to NuGet | |
| on: | |
| push: | |
| branches: | |
| - main | |
| paths-ignore: | |
| - "README.md" | |
| jobs: | |
| publish: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/checkout@v4 | |
| - uses: actions/setup-dotnet@v4 | |
| with: | |
| dotnet-version: 8.0.x | |
| - name: Download Release Assets | |
| run: | | |
| mkdir -p release-assets | |
| curl -L -o release-assets/voices.zip https://github.com/Lyrcaxis/KokoroSharpBinaries/releases/download/v1.0.0/voices.zip | |
| curl -L -o release-assets/espeak.zip https://github.com/Lyrcaxis/KokoroSharpBinaries/releases/download/v1.0.0/espeak-ng-binaries-v1.52.zip | |
| unzip release-assets/voices.zip -d KokoroSharp | |
| unzip release-assets/espeak.zip -d KokoroSharp | |
| - name: Pack and build projects | |
| run: | | |
| PROJECTS=( | |
| "./Runtimes/KokoroSharp.CPU/KokoroSharp.CPU.csproj" | |
| "./Runtimes/KokoroSharp.GPU/KokoroSharp.GPU.csproj" | |
| "./Runtimes/KokoroSharp.GPU.Linux/KokoroSharp.GPU.Linux.csproj" | |
| "./Runtimes/KokoroSharp.GPU.Windows/KokoroSharp.GPU.Windows.csproj" | |
| "./Runtimes/KokoroSharp.DirectML/KokoroSharp.DirectML.csproj" | |
| ) | |
| for project_path in "${PROJECTS[@]}"; do dotnet sln KokoroSharp.sln add "$project_path"; done # Add all projects to the solution | |
| dotnet pack KokoroSharp.sln -c Release -o ./packed_nupkgs # Pack all projects into nupkgs | |
| - name: Publish to NuGet | |
| run: dotnet nuget push ./packed_nupkgs/*.nupkg -k ${{ secrets.NUGET_API_KEY }} --source https://api.nuget.org/v3/index.json --skip-duplicate |