From 480bccd6caf29d7b766e66e766c11da0d7e1d9e5 Mon Sep 17 00:00:00 2001 From: Chandradev Date: Mon, 7 Jul 2025 11:38:28 +0530 Subject: [PATCH] Update azure-static-web-apps-orange-water-0badfae10.yml --- ...static-web-apps-orange-water-0badfae10.yml | 37 +++++++++++++------ 1 file changed, 25 insertions(+), 12 deletions(-) diff --git a/.github/workflows/azure-static-web-apps-orange-water-0badfae10.yml b/.github/workflows/azure-static-web-apps-orange-water-0badfae10.yml index 57aadcc..806b55c 100644 --- a/.github/workflows/azure-static-web-apps-orange-water-0badfae10.yml +++ b/.github/workflows/azure-static-web-apps-orange-water-0badfae10.yml @@ -15,31 +15,44 @@ jobs: runs-on: ubuntu-latest name: Build and Deploy Job steps: - - uses: actions/checkout@v3 + - name: Checkout Code + uses: actions/checkout@v3 with: submodules: true lfs: false - - name: Build And Deploy - id: builddeploy + + - name: Setup .NET + uses: actions/setup-dotnet@v3 + with: + dotnet-version: '8.0.x' + + - name: Restore Dependencies + run: dotnet restore ./Client/Client.csproj + + - name: Publish Blazor App with Brotli & Trimming + run: | + dotnet publish ./Client/Client.csproj \ + -c Release \ + -o build \ + -p:BlazorWebAssemblyEnableCompression=true \ + -p:PublishTrimmed=true + + - name: Deploy to Azure Static Web App uses: Azure/static-web-apps-deploy@v1 with: azure_static_web_apps_api_token: ${{ secrets.AZURE_STATIC_WEB_APPS_API_TOKEN_ORANGE_WATER_0BADFAE10 }} - repo_token: ${{ secrets.GITHUB_TOKEN }} # Used for Github integrations (i.e. PR comments) + repo_token: ${{ secrets.GITHUB_TOKEN }} action: "upload" - ###### Repository/Build Configurations - These values can be configured to match your app requirements. ###### - # For more information regarding Static Web App workflow configurations, please visit: https://aka.ms/swaworkflowconfig - app_location: "./Client" # App source code path - api_location: "Api" # Api source code path - optional - output_location: "wwwroot" # Built app content directory - optional - ###### End of Repository/Build Configurations ###### + app_location: "." # Root path — not used when using `output_location` + api_location: "Api" # Optional: Azure Function App folder (if any) + output_location: "build/wwwroot" # Pointing to the manually published output close_pull_request_job: if: github.event_name == 'pull_request' && github.event.action == 'closed' runs-on: ubuntu-latest name: Close Pull Request Job steps: - - name: Close Pull Request - id: closepullrequest + - name: Close Pull Request Preview uses: Azure/static-web-apps-deploy@v1 with: azure_static_web_apps_api_token: ${{ secrets.AZURE_STATIC_WEB_APPS_API_TOKEN_ORANGE_WATER_0BADFAE10 }}