From a90ff8305de7e581d83024a9133afd4e22f7fd17 Mon Sep 17 00:00:00 2001 From: NostraThomas99 <34015422+NostraThomas99@users.noreply.github.com> Date: Sat, 6 Apr 2024 23:22:04 -0500 Subject: [PATCH] Update publish.yaml --- .github/workflows/publish.yaml | 20 ++++++++++++++------ 1 file changed, 14 insertions(+), 6 deletions(-) diff --git a/.github/workflows/publish.yaml b/.github/workflows/publish.yaml index 7309e5842..1d8ce85d1 100644 --- a/.github/workflows/publish.yaml +++ b/.github/workflows/publish.yaml @@ -13,6 +13,12 @@ jobs: uses: actions/checkout@v4 with: submodules: true + + - name: Setup NuGet.exe for use with actions + uses: NuGet/setup-nuget@v2 + with: + nuget-api-key: ${{ secrets.NUGET_API_KEY }} + - name: Get Environment Variables run: | @@ -24,9 +30,6 @@ jobs: uses: actions/setup-dotnet@v1 with: dotnet-version: 8.0.x - - - name: Authenticate with NuGet - run: dotnet nuget add source https://api.nuget.org/v3/index.json -n nuget.org -u username -p ${{ secrets.NUGET_API_KEY }} --store-password-in-clear-text - name: Download Dalamud Latest run: | @@ -36,12 +39,17 @@ jobs: - name: Restore Nuget Packages run: dotnet restore RotationSolver/RotationSolver.csproj + - name: Publish NuGet + uses: brandedoutcast/publish-nuget@v2 + with: + PROJECT_FILE_PATH: RotationSolver.Basic/Rotationsolver.Basic.csproj + VERSION_STATIC: ${{ env.tag }} + NUGET_KEY: ${{ secrets.NUGET_API_KEY }} + INCLUDE_SYMBOLS: true + - name: Build Plugin run: dotnet build --no-restore -c Release RotationSolver/RotationSolver.csproj -p:AssemblyVersion=${{ env.tag }} -p:FileVersion=${{ env.tag }} -p:PackageVersion=${{ env.tag }} -p:InformationalVersion=${{ env.tag }} --output .\build - - name: Publish RS.Basic Nuget - run: dotnet nuget push .\build\RotationSolver.Basic.*.nupkg -k ${{ secrets.NUGET_API_KEY }} -s https://api.nuget.org/v3/index.json - - name: Zip Plugin run: Compress-Archive -Path .\build\* -DestinationPath .\build\RotationSolver.zip