Skip to content

Commit 72659c9

Browse files
committed
refactor: Update FrontendRelease workflow to include zipped build files and adjust locations
1 parent 99ea105 commit 72659c9

File tree

1 file changed

+8
-6
lines changed

1 file changed

+8
-6
lines changed

.github/workflows/FrontendRelease.yml

Lines changed: 8 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,3 @@
1-
# Build and deploy the frontend app to Azure Static Web Apps
21
name: Frontend Build and Deploy
32

43
on:
@@ -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

0 commit comments

Comments
 (0)