diff --git a/.env.production b/.env.production index 6c24d88..23653fc 100644 --- a/.env.production +++ b/.env.production @@ -1 +1,2 @@ +REACT_APP_BACKEND_URL=https://streetcodeserver-d7hxascranene7cj.polandcentral-01.azurewebsites.net/api REACT_APP_TEMPVAL=prodval \ No newline at end of file diff --git a/.github/workflows/azure-static-web-apps.yml b/.github/workflows/azure-static-web-apps.yml index b8f1878..c12f6bc 100644 --- a/.github/workflows/azure-static-web-apps.yml +++ b/.github/workflows/azure-static-web-apps.yml @@ -26,14 +26,14 @@ jobs: uses: Azure/static-web-apps-deploy@v1 with: azure_static_web_apps_api_token: ${{ secrets.AZURE_STATIC_WEB_APPS_API_TOKEN }} - 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: "/" # App source code path - api_location: "" # Api source code path - optional - output_location: "dist" # Built app content directory - optional - ###### End of Repository/Build Configurations ###### + app_location: "/" + api_location: "" + output_location: "dist" + app_build_command: 'npm run build' + env: + REACT_APP_BACKEND_URL: ${{ secrets.REACT_APP_BACKEND_URL }} close_pull_request_job: if: github.event_name == 'pull_request' && github.event.action == 'closed'