File tree Expand file tree Collapse file tree 2 files changed +43
-46
lines changed
Expand file tree Collapse file tree 2 files changed +43
-46
lines changed Original file line number Diff line number Diff line change 1+ # Build and deploy the frontend app to Azure Static Web Apps
2+ name : Frontend Build and Deploy
3+
4+ on :
5+ release :
6+ types : [published]
7+
8+ jobs :
9+ build_and_deploy_job :
10+ if : github.ref == 'refs/heads/main'
11+ runs-on : ubuntu-latest
12+ name : Build and Deploy Job
13+
14+ steps :
15+ - name : Checkout repository
16+ uses : actions/checkout@v3
17+ with :
18+ submodules : true
19+ lfs : false
20+
21+ - name : Set up Node.js
22+ uses : actions/setup-node@v3
23+ with :
24+ node-version : ' 20' # Specify your Node.js version
25+
26+ - name : Install dependencies
27+ run : yarn install
28+ working-directory : ./apps/frontend
29+
30+ - name : Build the app
31+ run : yarn build
32+ working-directory : ./apps/frontend
33+
34+ - name : Deploy to Azure Static Web Apps
35+ id : builddeploy
36+ uses : Azure/static-web-apps-deploy@v1
37+ with :
38+ action : " upload"
39+ azure_static_web_apps_api_token : ${{ secrets.AZURE_STATIC_WEB_APPS_API_TOKEN_BLACK_WAVE_0F9BACA10 }}
40+ repo_token : ${{ secrets.GITHUB_TOKEN }}
41+ api_location : " " # Azure location where your API is deployed
42+ app_location : " ./apps/frontend" # Where the codebase is located
43+ output_location : " .next" # The directory where the build output is generated
Load Diff This file was deleted.
You can’t perform that action at this time.
0 commit comments