Skip to content

Commit

Permalink
Only run bulid:css command after build in debug mode
Browse files Browse the repository at this point in the history
  • Loading branch information
Owen-Krueger committed Nov 21, 2023
1 parent 754a1ff commit 93d83a7
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
2 changes: 2 additions & 0 deletions .github/workflows/azure-static-web-app.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,8 @@ jobs:
uses: actions/setup-node@v4
with:
node-version: '20'
# Runs rm package.json package-lock.json to avoid conflicts with the Azure Static Web Apps build, which
# will detect the package.json file and not run the dotnet build command.
- name: Install Dependencies and Generate Tailwind CSS
run: |
cd src
Expand Down
2 changes: 1 addition & 1 deletion src/PersonalWebsite.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
<PackageReference Include="Newtonsoft.Json" Version="13.0.3" />
</ItemGroup>

<Target Name="PostBuild" AfterTargets="PostBuildEvent">
<Target Name="PostBuild" AfterTargets="PostBuildEvent" Condition="'$(Configuration)' == 'Debug'">
<Exec Command="npm run build:css" />
</Target>

Expand Down

0 comments on commit 93d83a7

Please sign in to comment.