Files
ProxyGenerator/.github/workflows/nuget.yml
T
2024-05-22 09:40:35 +01:00

29 lines
873 B
YAML

name: "Deploy to Nuget.org"
on:
workflow_dispatch:
jobs:
deploy:
runs-on: ubuntu-latest
steps:
- name: Checkout Project
uses: actions/checkout@v4
- name: Setup .NET
uses: actions/setup-dotnet@v4
with:
dotnet-version: 8.0.x
- name: Restore dependencies
run: dotnet restore
- name: Build
run: dotnet build --configuration Release --no-restore src/Speckle.ProxyGenerator/Speckle.ProxyGenerator.csproj
- name: Pack
run: dotnet pack --no-build --configuration Release src/Speckle.ProxyGenerator/Speckle.ProxyGenerator.csproj --output .
- name: Push to nuget.org
run: dotnet nuget push *.nupkg --source "https://api.nuget.org/v3/index.json" --api-key ${{secrets.CONNECTORS_NUGET_TOKEN }} --skip-duplicate