File tree Expand file tree Collapse file tree 1 file changed +7
-7
lines changed
Expand file tree Collapse file tree 1 file changed +7
-7
lines changed Original file line number Diff line number Diff line change 11name : Deploy production from main
2-
32on :
43 push :
54 branches : [main]
6-
75env :
86 NODE_VERSION : " 18.x"
9-
107concurrency : production-environment
118
129jobs :
@@ -15,18 +12,21 @@ jobs:
1512 runs-on : ubuntu-latest
1613 environment : production
1714 steps :
18- - uses : actions/checkout@v2
15+ - uses : actions/checkout@v3
16+
1917 - name : Use Node.js ${{ env.NODE_VERSION }}
20- uses : actions/setup-node@v1
18+ uses : actions/setup-node@v3
2119 with :
2220 node-version : ${{ env.NODE_VERSION }}
23- - name : yarn build
21+ cache : ' yarn' # <-- NEW: Enable Yarn caching automatically
22+
23+ - name : Install dependencies and build
2424 env :
25- # The license needs to present when building, so that the admin-ui is built as enterprise version
2625 STRAPI_LICENSE : ${{ secrets.STRAPI_LICENSE }}
2726 run : |
2827 yarn install --silent
2928 yarn build
29+
3030 - name : Deploy to Azure webApp
3131 uses : azure/webapps-deploy@v3
3232 with :
You can’t perform that action at this time.
0 commit comments