File tree Expand file tree Collapse file tree 2 files changed +37
-73
lines changed Expand file tree Collapse file tree 2 files changed +37
-73
lines changed Load Diff This file was deleted.
Original file line number Diff line number Diff line change 1+ name : Deploy to Azure App Service
2+
3+ on :
4+ push :
5+ branches : [ main ]
6+ workflow_dispatch :
7+
8+ env :
9+ AZURE_WEBAPP_NAME : static-docs-site
10+ AZURE_WEBAPP_PACKAGE_PATH : ' .'
11+ NODE_VERSION : ' 20.x'
12+
13+ jobs :
14+ build-and-deploy :
15+ runs-on : ubuntu-latest
16+
17+ steps :
18+ - uses : actions/checkout@v4
19+
20+ - name : Setup Node.js
21+ uses : actions/setup-node@v4
22+ with :
23+ node-version : ${{ env.NODE_VERSION }}
24+ cache : ' npm'
25+
26+ - name : Install dependencies
27+ run : npm ci
28+
29+ - name : Build application
30+ run : npm run build
31+
32+ - name : Deploy to Azure Web App
33+ uses : azure/webapps-deploy@v2
34+ with :
35+ app-name : ${{ env.AZURE_WEBAPP_NAME }}
36+ publish-profile : ${{ secrets.AZURE_WEBAPP_PUBLISH_PROFILE }}
37+ package : ${{ env.AZURE_WEBAPP_PACKAGE_PATH }}
You can’t perform that action at this time.
0 commit comments