Update package name to XxHashLib and fix README badges #3
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: build | |
| on: | |
| release: | |
| types: [created] | |
| push: | |
| branches: | |
| - master | |
| jobs: | |
| build: | |
| runs-on: windows-latest | |
| steps: | |
| - uses: actions/checkout@v4 | |
| - name: Setup .NET | |
| uses: actions/setup-dotnet@v4 | |
| with: | |
| dotnet-version: 10.0.x | |
| - name: Install dependencies | |
| run: dotnet restore src\System.IO.Hashing.XxHash.csproj | |
| - name: Build | |
| run: dotnet build src\System.IO.Hashing.XxHash.csproj --configuration Release --no-restore | |
| - name: Pack | |
| run: dotnet pack src\System.IO.Hashing.XxHash.csproj -c Release --no-build -o out | |
| - name: Push NuGet package | |
| # run: dotnet nuget push "out\*.nupkg" -k ${{secrets.NUGET_AUTH_TOKEN}} --source https://api.nuget.org/v3/index.json | |
| uses: actions/upload-artifact@v4 | |
| with: | |
| name: nuget-packages | |
| path: out/*.nupkg |