Skip to content

Update README for formatting and content clarity #5

Update README for formatting and content clarity

Update README for formatting and content clarity #5

Workflow file for this run

name: Publish to NuGet
on:
push:
branches: [master]
jobs:
publish:
name: Build and Publish
runs-on: ubuntu-latest
permissions:
id-token: write # Required for requesting the OIDC token
contents: read # Required for actions/checkout
steps:
- uses: actions/checkout@v4
- name: Setup .NET
uses: actions/setup-dotnet@v4
with:
dotnet-version: '10.x'
- name: Restore dependencies
run: dotnet restore
- name: Build
run: dotnet build --no-restore -c Release
- name: Pack
run: dotnet pack MinHash/MinHash.csproj --no-build -c Release -o ./nupkg
- name: NuGet login
uses: NuGet/login@v1
id: login
with:
user: ${{ secrets.NUGET_USER }}
- name: Push to NuGet
run: dotnet nuget push ./nupkg/*.nupkg --api-key ${{ steps.login.outputs.NUGET_API_KEY }} --source https://api.nuget.org/v3/index.json --skip-duplicate