diff --git a/.github/workflows/BuildProject.yml b/.github/workflows/BuildProject.yml index 7a2c5ce..7dc6751 100644 --- a/.github/workflows/BuildProject.yml +++ b/.github/workflows/BuildProject.yml @@ -51,10 +51,13 @@ jobs: with: dotnet-version: '7.0.x' + - name: Restore dependencies + run: dotnet restore ${{ github.workspace }}/TerraformRegistryClient/TerraformRegistryClient.sln + - name: Package - run: dotnet pack ${{ github.workspace }}/TerraformRegistryClient/TerraformRegistryClient.sln --configuration Release --no-build --output nupkgs + run: dotnet pack ${{ github.workspace }}/TerraformRegistryClient/TerraformRegistryClient.sln --configuration Release --output nupkgs - name: Publish NuGet Package run: | nuget push **/*.nupkg -k ${{secrets.NUGET_API_KEY}} -s https://api.nuget.org/v3/index.json - if: github.ref == 'refs/heads/main' && github.event_name == 'push' \ No newline at end of file + if: github.ref == 'refs/heads/main' && github.event_name == 'push'