Spaces:
Sleeping
Sleeping
Yuyuqt commited on
Commit ·
bdc59fe
1
Parent(s): cbb3786
add: deploy.yml fix
Browse files
.github/workflows/deploy.yml
CHANGED
|
@@ -16,6 +16,7 @@ jobs:
|
|
| 16 |
dotnet-version: '8.0.x' # Use your project's .NET version
|
| 17 |
|
| 18 |
- name: Publish Project
|
|
|
|
| 19 |
run: dotnet publish BlazorWebAssembly/BlazorWebAssembly.csproj -c Release -o release
|
| 20 |
|
| 21 |
- name: Deploy to Vercel
|
|
@@ -24,4 +25,6 @@ jobs:
|
|
| 24 |
vercel-token: ${{ secrets.VERCEL_TOKEN }}
|
| 25 |
vercel-org-id: ${{ secrets.VERCEL_ORG_ID }}
|
| 26 |
vercel-project-id: ${{ secrets.VERCEL_PROJECT_ID }}
|
| 27 |
-
|
|
|
|
|
|
|
|
|
| 16 |
dotnet-version: '8.0.x' # Use your project's .NET version
|
| 17 |
|
| 18 |
- name: Publish Project
|
| 19 |
+
# We are changing the output to just 'release' (no nested subfolders)
|
| 20 |
run: dotnet publish BlazorWebAssembly/BlazorWebAssembly.csproj -c Release -o release
|
| 21 |
|
| 22 |
- name: Deploy to Vercel
|
|
|
|
| 25 |
vercel-token: ${{ secrets.VERCEL_TOKEN }}
|
| 26 |
vercel-org-id: ${{ secrets.VERCEL_ORG_ID }}
|
| 27 |
vercel-project-id: ${{ secrets.VERCEL_PROJECT_ID }}
|
| 28 |
+
# We point exactly to where the web files are
|
| 29 |
+
working-directory: ./release/wwwroot
|
| 30 |
+
vercel-args: '--prod'
|