From 97d49d302df6396f3c764a2f18fc89f24765d47d Mon Sep 17 00:00:00 2001 From: "Gulam Ali H." Date: Sun, 15 Dec 2024 15:06:42 +0530 Subject: [PATCH] fix: possible cd pathing issue (#163) --- .github/workflows/main_cd.yml | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/.github/workflows/main_cd.yml b/.github/workflows/main_cd.yml index f34f0b9..fa9f676 100644 --- a/.github/workflows/main_cd.yml +++ b/.github/workflows/main_cd.yml @@ -12,7 +12,7 @@ jobs: steps: - uses: actions/checkout@v4 - - name: Verify commit exists in origin/main + - name: Verify commit exists in origin/master run: | git fetch --no-tags --prune --depth=1 origin +refs/heads/*:refs/remotes/origin/* git branch --remote --contains | grep origin/master @@ -22,8 +22,8 @@ jobs: $version="${{github.ref_name}}".TrimStart("v") "version-without-v=$version" | Out-File -FilePath $env:GITHUB_OUTPUT -Append - name: Pack - run: dotnet pack ~/MAUI.FreakyControls/MAUI.FreakyControls/Maui.FreakyControls.csproj -c Release -p:PackageVersion=${{ steps.get_version.outputs.version-without-v }} + run: dotnet pack MAUI.FreakyControls\MAUI.FreakyControls\Maui.FreakyControls.csproj -c Release -p:PackageVersion=${{ steps.get_version.outputs.version-without-v }} - name: Push - run: dotnet nuget push MAUI.FreakyControls/MAUI.FreakyControls/bin/Release/FreakyControls.${{ steps.get_version.outputs.version-without-v }}.nupkg -s https://api.nuget.org/v3/index.json -k ${{ secrets.NUGET_API_KEY }} + run: dotnet nuget push MAUI.FreakyControls\MAUI.FreakyControls\bin\Release\FreakyControls.${{ steps.get_version.outputs.version-without-v }}.nupkg -s https://api.nuget.org/v3/index.json -k ${{ secrets.NUGET_API_KEY }} env: GITHUB_TOKEN: ${{ secrets.NUGET_API_KEY }}