Skip to content

Commit

Permalink
Feature/173197 persons api client nu get package (#570)
Browse files Browse the repository at this point in the history
* Added a new step to the build workfow to build and publish a nuget package

* Changed the target condition so it wont run in CI

* Added a change for testing the new workflow

* Added environment varibale CI to the CI yaml file

* Added build-args in the docker-build

* Fixed the casing in teh target condition

* Modified target condition

* Modified target condition

---------

Co-authored-by: Farshad DASHTI <[email protected]>
  • Loading branch information
FrostyApeOne and Farshad DASHTI authored Aug 14, 2024
1 parent f9a1c46 commit eb2aeaa
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/docker-build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ jobs:
uses: docker/build-push-action@v6
with:
build-args: |
CI=true
CI="true"
file: './${{ matrix.image }}'
secrets: github_token=${{ secrets.GITHUB_TOKEN }}
push: false
3 changes: 2 additions & 1 deletion PersonsApi/PersonsApi.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,8 @@
<Message Text="CI variable value: '$(CI)'" Importance="high"/>
</Target>

<Target Name="NSwag" BeforeTargets="AfterBuild" Condition="'!$(CI)'">
<Target Name="NSwag" BeforeTargets="AfterBuild" Condition="'$(CI)'!='true'">

<Exec
ConsoleToMSBuild="true"
ContinueOnError="true"
Expand Down

0 comments on commit eb2aeaa

Please sign in to comment.