File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -16,31 +16,38 @@ jobs:
1616 name : Build and Deploy Job
1717 steps :
1818 - uses : actions/checkout@v3
19+
20+ # Cache dependencies to speed up installs
21+ - name : Setup Node.js
22+ uses : actions/setup-node@v3
1923 with :
20- submodules : true
21- lfs : false
22- - name : Build And Deploy
23- id : builddeploy
24+ node-version : 18
25+ cache : ' npm'
26+
27+ - name : Install dependencies
28+ run : npm ci
29+
30+ - name : Build Vite app
31+ run : npm run build
32+
33+ - name : Deploy to Azure Static Web Apps
2434 uses : Azure/static-web-apps-deploy@v1
2535 with :
2636 azure_static_web_apps_api_token : ${{ secrets.AZURE_STATIC_WEB_APPS_API_TOKEN_DELIGHTFUL_MUSHROOM_00C4AFF10 }}
27- repo_token : ${{ secrets.GITHUB_TOKEN }}
28- action : " upload"
29- app_location : " ."
30- output_location : " dist"
31- skip_api_build : true
32- api_build_command : ' echo "Skipping API build"'
33- app_build_command : ' npm install && npm run build'
37+ repo_token : ${{ secrets.GITHUB_TOKEN }}
38+ action : " upload"
39+ app_location : " ."
40+ output_location : " dist"
41+ skip_app_build : true
42+ skip_api_build : true
3443
3544 close_pull_request_job :
3645 if : github.event_name == 'pull_request' && github.event.action == 'closed'
3746 runs-on : ubuntu-latest
3847 name : Close Pull Request Job
3948 steps :
4049 - name : Close Pull Request
41- id : closepullrequest
4250 uses : Azure/static-web-apps-deploy@v1
4351 with :
4452 azure_static_web_apps_api_token : ${{ secrets.AZURE_STATIC_WEB_APPS_API_TOKEN_DELIGHTFUL_MUSHROOM_00C4AFF10 }}
4553 action : " close"
46- app_location : " /"
You can’t perform that action at this time.
0 commit comments