File tree Expand file tree Collapse file tree 1 file changed +14
-11
lines changed
Expand file tree Collapse file tree 1 file changed +14
-11
lines changed Original file line number Diff line number Diff line change @@ -11,30 +11,33 @@ jobs:
1111 name : Build and deploy
1212 runs-on : ubuntu-latest
1313 environment : production
14+
1415 steps :
15- - uses : actions/checkout@v3
16+ - name : Check out code
17+ uses : actions/checkout@v4
1618
1719 - name : Use Node.js ${{ env.NODE_VERSION }}
1820 uses : actions/setup-node@v3
1921 with :
2022 node-version : ${{ env.NODE_VERSION }}
21- cache : ' yarn' # <-- NEW: Enable Yarn caching automatically
23+ cache : ' yarn'
2224
23- - name : Install dependencies and build
25+ - name : Install dependencies
2426 env :
2527 STRAPI_LICENSE : ${{ secrets.STRAPI_LICENSE }}
26- run : |
27- yarn install --silent
28- yarn build
28+ run : yarn install --silent
29+
30+ - name : Build project
31+ run : yarn build
2932
30- - name : Archive build output (exclude node_modules)
31- run : zip -r dist .zip build -x "**/node_modules/*"
33+ - name : Zip build folder
34+ run : zip -r release .zip build
3235
33- - name : Deploy to Azure webApp
36+ - name : Deploy to Azure Web App (run from zip)
3437 uses : azure/webapps-deploy@v3
3538 with :
3639 app-name : pof-backend-production
3740 publish-profile : ${{ secrets.AZURE_WEBAPP_PUBLISH_PROFILE }}
38- package : ./dist .zip
41+ package : release .zip
3942 type : zip
40- clean : true
43+ clean : true
You can’t perform that action at this time.
0 commit comments