From bf606c108f55385afdbd817ace440ccf5587b85b Mon Sep 17 00:00:00 2001 From: Sebin Benjamin Date: Mon, 19 Aug 2024 17:16:29 +1200 Subject: [PATCH] feat: add env for building with VITE_API_HOST --- .../azure-static-web-apps-nice-river-04a2f1200.yml | 12 +++++++----- 1 file changed, 7 insertions(+), 5 deletions(-) diff --git a/.github/workflows/azure-static-web-apps-nice-river-04a2f1200.yml b/.github/workflows/azure-static-web-apps-nice-river-04a2f1200.yml index e25a783..464df5f 100644 --- a/.github/workflows/azure-static-web-apps-nice-river-04a2f1200.yml +++ b/.github/workflows/azure-static-web-apps-nice-river-04a2f1200.yml @@ -22,15 +22,17 @@ jobs: - name: Build And Deploy id: builddeploy uses: Azure/static-web-apps-deploy@v1 + env: + VITE_API_HOST: ${{ secrets.VITE_API_HOST }} with: azure_static_web_apps_api_token: ${{ secrets.AZURE_STATIC_WEB_APPS_API_TOKEN_NICE_RIVER_04A2F1200 }} repo_token: ${{ secrets.GITHUB_TOKEN }} # Used for Github integrations (i.e. PR comments) - action: "upload" + 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: "/" # App source code path - api_location: "" # Api source code path - optional - output_location: "dist" # Built app content directory - optional + app_location: '/' # App source code path + api_location: '' # Api source code path - optional + output_location: 'dist' # Built app content directory - optional ###### End of Repository/Build Configurations ###### close_pull_request_job: @@ -43,4 +45,4 @@ jobs: uses: Azure/static-web-apps-deploy@v1 with: azure_static_web_apps_api_token: ${{ secrets.AZURE_STATIC_WEB_APPS_API_TOKEN_NICE_RIVER_04A2F1200 }} - action: "close" + action: 'close'