Skip to content

Merge pull request #35 from ipfs-shipyard/rel/0.3.0 #27

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

Merge pull request #35 from ipfs-shipyard/rel/0.3.0 #27

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-and-publish:
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
# Pre-publish unit test runs is disabled.
# The codebase is old, and many things are broken in the latest HTTP API.
# It'll take some time before we fully fix all the issues.
# - name: Test
# run: dotnet test --no-build --verbosity normal -p:Configuration=Release
- name: Publish to NuGet
if: ${{github.ref == 'refs/heads/main'}}
run: dotnet nuget push "/home/runner/work/net-ipfs-http-client/net-ipfs-http-client/src/bin/Release/IpfsShipyard.Ipfs.Http.Client.*.*.*.nupkg" --skip-duplicate --api-key ${{secrets.NUGET_KEY}} --source https://api.nuget.org/v3/index.json