From f30e95681f803cf2a5c2ecfef5b23997dbe8d428 Mon Sep 17 00:00:00 2001 From: Forest Date: Thu, 29 Feb 2024 12:33:51 -0800 Subject: [PATCH] Add nuget yaml --- .github/workflows/nuget.yml | 34 ++++++++++++++++++++++++++++++++++ 1 file changed, 34 insertions(+) create mode 100644 .github/workflows/nuget.yml diff --git a/.github/workflows/nuget.yml b/.github/workflows/nuget.yml new file mode 100644 index 0000000..3da1162 --- /dev/null +++ b/.github/workflows/nuget.yml @@ -0,0 +1,34 @@ +name: Publish to Nuget + +on: + workflow_dispatch: + inputs: + version: + required: true + type: string + +jobs: + build: + runs-on: ${{ matrix.os }} + strategy: + matrix: + os: [ windows-latest ] + + steps: + - name: Test + env: + NUGET_KEY: ${{ secrets.NUGET_API_KEY }} + run: echo %NUGET_KEY% + + +# - uses: actions/checkout@v2 +# - name: Setup .NET +# uses: actions/setup-dotnet@v1 +# with: +# dotnet-version: 7.x +# - name: Pack +# run: dotnet pack /p:Version=${{ inputs.version }} --output . +# - name: Push +# env: +# NUGET_KEY: ${{ secrets.NUGET_API_KEY }} +# run: dotnet nuget push innersloth.Hazel-Networking.${{ inputs.version }}.nupkg --source https://api.nuget.org/v3/index.json --api-key "%NUGET_KEY%"