File tree Expand file tree Collapse file tree 3 files changed +20
-39
lines changed
Expand file tree Collapse file tree 3 files changed +20
-39
lines changed Original file line number Diff line number Diff line change @@ -14,45 +14,32 @@ jobs:
1414 runs-on : ubuntu-latest
1515
1616 steps :
17+ # 1. Check out code
1718 - uses : actions/checkout@v4
1819
19- - name : Setup Node.js
20- uses : actions/setup-node@v3
20+ # 2. Set up Node.js
21+ - uses : actions/setup-node@v3
2122 with :
2223 node-version : ' 20'
2324
24- - name : Install dependencies
25- run : npm ci
25+ # 3. Install & build
26+ - run : npm ci
27+ - run : npm run build
2628
27- - name : Build Next.js app
28- run : npm run build
29-
30- - name : Zip for deployment
31- run : |
32- zip -r pubsite.zip . -x ".git/*" ".github/*" "node_modules/*"
33-
34- - uses : actions/upload-artifact@v4
35- with :
36- name : site-package
37- path : pubsite.zip
38-
39- - uses : actions/download-artifact@v4
40- with :
41- name : site-package
42- path : .
43-
44- - name : Unzip
45- run : unzip -o pubsite.zip
29+ # 4. Zip up everything for App Service
30+ - run : zip -r pubsite.zip . -x ".git/**" "node_modules/**"
4631
32+ # 5. Login to Azure using OIDC
4733 - name : Azure Login
4834 uses : azure/login@v2
4935 with :
50- client-id : ${{ secrets.AZUREAPPSERVICE_CLIENTID_E5978DC6004B4BB995ACD60ADAF513EF }}
51- tenant-id : ${{ secrets.AZUREAPPSERVICE_TENANTID_8824E98435E440FAA46E146AD7716A44 }}
52- subscription-id : ${{ secrets.AZUREAPPSERVICE_SUBSCRIPTIONID_6A3ECC57385541ACB3AC40EA396FC5B5 }}
36+ client-id : ${{ secrets.AZUREAPPSERVICE_CLIENTID }}
37+ tenant-id : ${{ secrets.AZUREAPPSERVICE_TENANTID }}
38+ subscription-id : ${{ secrets.AZUREAPPSERVICE_SUBSCRIPTIONID }}
5339
40+ # 6. Deploy the zip to your Web App
5441 - name : Deploy to Azure Web App
5542 uses : azure/webapps-deploy@v3
5643 with :
5744 app-name : pubsite
58- package : .
45+ package : pubsite.zip
Original file line number Diff line number Diff line change 11/** @type {import('next').NextConfig } */
22const nextConfig = {
3-
3+ reactStrictMode : true ,
44 images : {
5- unoptimized : true
5+ unoptimized : true
66 }
77} ;
8- export default nextConfig ;
8+
9+ export default nextConfig ;
Original file line number Diff line number Diff line change 33 "version" : " 0.1.0" ,
44 "private" : true ,
55 "scripts" : {
6- "dev" : " next dev" ,
6+ "dev" : " next dev" ,
77 "build" : " next build" ,
88 "start" : " next start -p 8080"
99 },
1010 "dependencies" : {
1111 "@heroicons/react" : " ^2.2.0" ,
12- "@tailwindcss/postcss" : " ^4.1.11" ,
1312 "next" : " 15.3.4" ,
1413 "nodemailer" : " ^7.0.4" ,
1514 "react" : " ^19.0.0" ,
16- "react-dom" : " ^19.0.0" ,
17- "serve" : " 14.2.4"
18- },
19- "devDependencies" : {
20- "autoprefixer" : " 10.4.19" ,
21- "postcss" : " 8.4.38" ,
22- "tailwindcss" : " 3.4.5"
15+ "react-dom" : " ^19.0.0"
2316 }
2417}
You can’t perform that action at this time.
0 commit comments