File tree Expand file tree Collapse file tree 1 file changed +8
-6
lines changed
Expand file tree Collapse file tree 1 file changed +8
-6
lines changed Original file line number Diff line number Diff line change 1- # Build and deploy the frontend app to Azure Static Web Apps
21name : Frontend Build and Deploy
32
43on :
@@ -33,15 +32,18 @@ jobs:
3332 run : yarn workspace frontend build
3433 working-directory : ./apps/frontend
3534
36- - name : Deploy to Azure Static Web Apps
35+ - name : Zip build files
36+ run : zip -r build.zip .next
37+ working-directory : ./apps/frontend
38+
39+ - name : Upload zipped build to Azure
3740 uses : Azure/static-web-apps-deploy@v1
3841 id : deploy
3942 with :
4043 action : " upload"
41- azure_static_web_apps_api_token : ${{ secrets.AZURE_STATIC_WEB_APPS_API_TOKEN_BLACK_WAVE_0F9BACA10 }}
44+ azure_static_web_apps_api_token : ${{ secrets.AZURE_STATIC_WEB_APPS_API_TOKEN_BLACK_WAVE_0F9BACA10 }}
4245 repo_token : ${{ secrets.GITHUB_TOKEN }}
43- api_location : " " # Azure location where your API is deployed
44- app_location : " ./apps/frontend" # Where the codebase is located
45- output_location : " .next" # The directory where the build output is generated
46+ app_location : " ./apps/frontend/build.zip" # Zipped file location
47+ output_location : " .next" # Unzip location
4648 skip_app_build : true
4749 skip_api_build : true
You can’t perform that action at this time.
0 commit comments