Skip to content

Commit 9f9aedb

Browse files
Update azure-static-web-apps-orange-water-0badfae10.yml
1 parent da7e874 commit 9f9aedb

File tree

1 file changed

+12
-15
lines changed

1 file changed

+12
-15
lines changed

.github/workflows/azure-static-web-apps-orange-water-0badfae10.yml

Lines changed: 12 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ on:
1111

1212
jobs:
1313
build_and_deploy_job:
14-
if: github.event_name == 'push' ||
14+
if: github.event_name == 'push' ||
1515
(github.event_name == 'pull_request' && github.event.action != 'closed')
1616
runs-on: ubuntu-latest
1717
name: Build and Deploy Job
@@ -47,27 +47,24 @@ jobs:
4747
- name: Install WASM Tools workload
4848
run: dotnet workload install wasm-tools
4949

50-
- name: Publish Blazor WebAssembly Client
51-
run: dotnet publish ./Client -c Release -o build/client
52-
53-
- name: Publish Azure Function API
54-
run: dotnet publish ./Api -c Release -o build/api
55-
56-
- name: List Published Files (optional)
57-
run: ls -R build
50+
- name: Publish Blazor WebAssembly (AOT + Brotli)
51+
run: dotnet publish ./Client -c Release \
52+
/p:BlazorWebAssemblyEnableAOT=true \
53+
/p:CompressionEnabled=true
5854

5955
- name: Build and Deploy to Azure Static Web Apps
6056
uses: Azure/static-web-apps-deploy@v1
6157
with:
6258
azure_static_web_apps_api_token: ${{ secrets.AZURE_STATIC_WEB_APPS_API_TOKEN_ORANGE_WATER_0BADFAE10 }}
63-
repo_token: ${{ secrets.GITHUB_TOKEN }}
64-
action: upload
65-
app_location: build/client
66-
api_location: build/api
67-
output_location: wwwroot
59+
repo_token: ${{ secrets.GITHUB_TOKEN }}
60+
action: upload
61+
app_location: ./Client
62+
api_location: Api
63+
output_location: wwwroot
6864

6965
close_pull_request_job:
70-
if: github.event_name == 'pull_request' && github.event.action == 'closed'
66+
if: github.event_name == 'pull_request' &&
67+
github.event.action == 'closed'
7168
runs-on: ubuntu-latest
7269
name: Close Pull Request Job
7370

0 commit comments

Comments
 (0)