From 7e0329b90adae21adb4c95f0f8469071cd17301a Mon Sep 17 00:00:00 2001 From: Akhan Zhakiyanov Date: Fri, 13 Sep 2024 15:52:12 +0800 Subject: [PATCH] fix: working dir --- .github/workflows/publish.yaml | 14 ++++++++++++-- 1 file changed, 12 insertions(+), 2 deletions(-) diff --git a/.github/workflows/publish.yaml b/.github/workflows/publish.yaml index e6e6bb1..063c626 100644 --- a/.github/workflows/publish.yaml +++ b/.github/workflows/publish.yaml @@ -14,18 +14,23 @@ jobs: - name: Setup .NET uses: actions/setup-dotnet@v4 with: - dotnet-version: '8.0.x' + dotnet-version: '8.x' + dotnet-quality: 'ga' - name: Restore dependencies + working-directory: src run: dotnet restore - name: Build + working-directory: src run: dotnet build --configuration Release --no-restore - name: Pack + working-directory: src run: dotnet pack --configuration Release --no-build --output nupkgs - name: Push to GitHub Packages + working-directory: src run: | for f in ./nupkgs/*.nupkg do @@ -41,16 +46,21 @@ jobs: - name: Setup .NET uses: actions/setup-dotnet@v4 with: - dotnet-version: '8.0.x' + dotnet-version: '8.x' + dotnet-quality: 'ga' - name: Restore dependencies + working-directory: src run: dotnet restore - name: Build + working-directory: src run: dotnet build --configuration Release --no-restore - name: Pack + working-directory: src run: dotnet pack --configuration Release --no-build --output nupkgs - name: Push to NuGet.org + working-directory: src run: dotnet nuget push ./nupkgs/*.nupkg --source https://api.nuget.org/v3/index.json --api-key ${{ secrets.NUGET_ORG_API_KEY }} --skip-duplicate