Skip to content

Merge pull request #30 from ipfs-shipyard/rel/0.3.0 #25

Merge pull request #30 from ipfs-shipyard/rel/0.3.0

Merge pull request #30 from ipfs-shipyard/rel/0.3.0 #25

Workflow file for this run

name: Publish to Nuget
on:
push:
branches: [ "main" ]
# Allows you to run this workflow manually from the Actions tab
workflow_dispatch:
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Setup .NET
uses: actions/setup-dotnet@v4
with:
dotnet-version: 6.0.x
- name: Restore dependencies
run: dotnet restore
- name: Build
run: dotnet build --no-restore -p:Configuration=Release
- name: Test
run: dotnet test --no-build --verbosity normal -p:Configuration=Release
- name: Publish to NuGet
run: dotnet nuget push "/home/runner/work/net-ipfs-core/net-ipfs-core/src/bin/Release/IpfsShipyard.Ipfs.Core.*.*.*.nupkg" --skip-duplicate --api-key ${{secrets.NUGET_KEY}} --source https://api.nuget.org/v3/index.json