Skip to content

Commit

Permalink
test
Browse files Browse the repository at this point in the history
  • Loading branch information
filipbekic01 committed Oct 23, 2024
1 parent 3f4daa8 commit 2cbbc25
Show file tree
Hide file tree
Showing 2 changed files with 22 additions and 9 deletions.
13 changes: 13 additions & 0 deletions .github/workflows/deploy.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,19 @@ jobs:
with:
node-version: 20.x

- name: Install Node dependencies
working-directory: frontend
run: npm ci

- name: Build Vue frontend
working-directory: frontend
run: npm run build:prod

- name: Copy Vue dist to wwwroot
run: |
rm -rf backend/ResQueue/ResQueue/wwwroot
cp -R frontend/dist backend/ResQueue/ResQueue/wwwroot
- name: Build the project
working-directory: backend/ResQueue/ResQueue
run: dotnet build --configuration Release
Expand Down
18 changes: 9 additions & 9 deletions backend/ResQueue/ResQueue/ResQueue.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -33,15 +33,15 @@
<IsPackable>true</IsPackable>
</PropertyGroup>

<Target Name="Deploy Vue" BeforeTargets="Publish">
<Exec Command="npm ci" WorkingDirectory="../../../frontend"/>
<Exec Command="npm run build:prod" WorkingDirectory="../../../frontend"/>
<RemoveDir Directories="$(PublishDir)wwwroot"/>
<ItemGroup>
<CopyDist Include="../../../frontend/dist/**/*.*"/>
</ItemGroup>
<Copy SourceFiles="@(CopyDist)" DestinationFiles="@(CopyDist->'$(PublishDir)wwwroot\%(RecursiveDir)%(Filename)%(Extension)')"/>
</Target>
<!-- <Target Name="Deploy Vue" BeforeTargets="Publish">-->
<!-- <Exec Command="npm ci" WorkingDirectory="../../../frontend"/>-->
<!-- <Exec Command="npm run build:prod" WorkingDirectory="../../../frontend"/>-->
<!-- <RemoveDir Directories="$(PublishDir)wwwroot"/>-->
<!-- <ItemGroup>-->
<!-- <CopyDist Include="../../../frontend/dist/**/*.*"/>-->
<!-- </ItemGroup>-->
<!-- <Copy SourceFiles="@(CopyDist)" DestinationFiles="@(CopyDist->'$(PublishDir)wwwroot\%(RecursiveDir)%(Filename)%(Extension)')"/>-->
<!-- </Target>-->

<ItemGroup>
<Compile Remove="Features\Stripe\UpdateSeats\**\*.cs"/>
Expand Down

0 comments on commit 2cbbc25

Please sign in to comment.