Skip to content

Commit

Permalink
Only deploy Voxel2Pixel.Web
Browse files Browse the repository at this point in the history
  • Loading branch information
BenMcLean committed Nov 9, 2024
1 parent 5f3bf0d commit 50054dc
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions .github/workflows/deploy.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -26,19 +26,17 @@ jobs:
dotnet-version: '8.0.x'

- name: Restore dependencies
run: dotnet restore Voxel2Pixel.sln
run: dotnet restore Voxel2Pixel.Web/Voxel2Pixel.Web.csproj

- name: Build
run: dotnet build Voxel2Pixel.sln --configuration Release --no-restore
run: dotnet build Voxel2Pixel.Web/Voxel2Pixel.Web.csproj --configuration Release --no-restore

- name: Publish
run: dotnet publish Voxel2Pixel.Web/Voxel2Pixel.Web.csproj -c Release -o release --nologo

# Changes the base tag in index.html from '/' to '/Voxel2Pixel/' to match GitHub Pages repository subdirectory
- name: Change base-tag in index.html
run: sed -i 's/<base href="\/" \/>/<base href="\/Voxel2Pixel\/" \/>/g' release/wwwroot/index.html

# Prepare artifact with .nojekyll
- name: Prepare artifact
run: |
cd release/wwwroot
Expand Down

0 comments on commit 50054dc

Please sign in to comment.