From f5336f63ce0c9ed01bc022ac08e88dbc975aab68 Mon Sep 17 00:00:00 2001 From: ChiaraBm Date: Sun, 10 Aug 2025 16:16:57 +0200 Subject: [PATCH] Rewritten build and publish steps because github's nuget registry is not compatible with previous used action --- .github/workflows/publish-dev-packages.yml | 19 +++++++++++-------- 1 file changed, 11 insertions(+), 8 deletions(-) diff --git a/.github/workflows/publish-dev-packages.yml b/.github/workflows/publish-dev-packages.yml index 75e5a41d..767c3ead 100644 --- a/.github/workflows/publish-dev-packages.yml +++ b/.github/workflows/publish-dev-packages.yml @@ -25,12 +25,15 @@ jobs: # Step 2: Checkout the code - name: Checkout code uses: actions/checkout@v3 + + # Step 3: Build project + - name: "Build project" + run: dotnet build --configuration Debug ${{ matrix.project }}/${{ matrix.project }}.csproj - # Step 3: Run the publishing action - - name: Publish on version change - uses: alirezanet/publish-nuget@v3.1.0 - with: - PROJECT_FILE_PATH: ${{ matrix.project }}/${{ matrix.project }}.csproj - TAG_COMMIT: false - NUGET_KEY: ${{secrets.GH_PACKAGES_READWRITE}} - NUGET_SOURCE: https://nuget.pkg.github.com/Moonlight-Panel/index.json \ No newline at end of file + # Step 4: Pack project + - name: "Pack project" + run: dotnet pack --configuration Debug --no-build --output . ${{ matrix.project }}/${{ matrix.project }}.csproj + + # Step 5: Publish on package registry + - name: Publish on package registry" + run: dotnet nuget push "*.nupkg" --skip-duplicate --api-key ${{secrets.GH_PACKAGES_READWRITE}} --source https://nuget.pkg.github.com/Moonlight-Panel/index.json \ No newline at end of file