Skip to content

Commit

Permalink
Run the script in the build step
Browse files Browse the repository at this point in the history
This reverts commit a905e26.
  • Loading branch information
parkrrr committed May 1, 2024
1 parent a905e26 commit 51fc5e1
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 4 deletions.
2 changes: 2 additions & 0 deletions .github/workflows/dotnet.yml
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,8 @@ jobs:
dotnet-version: 8.0.x
- name: Restore dependencies
run: dotnet restore
- name: Update base URL
run: .\Update-Href.ps1
- name: Build
run: dotnet build --no-restore
- name: Publish
Expand Down
4 changes: 0 additions & 4 deletions FuelEconomy.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -22,8 +22,4 @@
<ServiceWorker Include="wwwroot\service-worker.js" PublishedContent="wwwroot\service-worker.published.js" />
</ItemGroup>

<Target Name="PreBuild" BeforeTargets="PreBuildEvent" Condition="'$(Configuration)' == 'Release'">
<Exec Command="PowerShell ./Update-Href.ps1" />
</Target>

</Project>

0 comments on commit 51fc5e1

Please sign in to comment.