Skip to content

Commit

Permalink
Updated to correct an error
Browse files Browse the repository at this point in the history
  • Loading branch information
jeffpatton1971 committed Aug 17, 2024
1 parent 043439f commit 21da860
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions .github/workflows/BuildProject.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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'
if: github.ref == 'refs/heads/main' && github.event_name == 'push'

0 comments on commit 21da860

Please sign in to comment.