From 857e5e7f025a95d0e65867f517b5a89a57c749ec Mon Sep 17 00:00:00 2001 From: Dima yawaflua Andreev Date: Wed, 26 Jun 2024 01:06:44 +0300 Subject: [PATCH] Create nuget.yml --- .github/workflows/nuget.yml | 28 ++++++++++++++++++++++++++++ 1 file changed, 28 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..6f57ad9 --- /dev/null +++ b/.github/workflows/nuget.yml @@ -0,0 +1,28 @@ +name: NuGet - Release + +on: + release: + types: [published] + +jobs: + publish-nuget: + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v2 + - name: Setup .NET Core + uses: actions/setup-dotnet@v1 + with: + dotnet-version: '8.x.x' + - name: Set output + id: vars + run: echo "tag=${GITHUB_REF#refs/*/}" >> $GITHUB_OUTPUT + - name: Publish to NuGet + uses: kelson-dev/publish-nuget-fixed@2.5.6 + with: + PROJECT_FILE_PATH: SPWorldsWrapper/SPWorldsWrapper.csproj + VERSION_STATIC: ${{ steps.vars.outputs.tags }} + TAG_COMMIT: true + TAG_FORMAT: "*" + NUGET_KEY: ${{secrets.NUGET_API_KEY}} + NUGET_SOURCE: https://api.nuget.org + INCLUDE_SYMBOLS: false