File tree Expand file tree Collapse file tree 1 file changed +15
-15
lines changed Expand file tree Collapse file tree 1 file changed +15
-15
lines changed Original file line number Diff line number Diff line change 1- name : Deploy to Azure App Service
1+ name : Deploy Docusaurus to Azure Web App
22
33on :
44 push :
5- branches : [ main ]
6- workflow_dispatch :
5+ branches : [ main ] # Trigger on push to main branch
6+ workflow_dispatch : # Also allow manual trigger from GitHub UI
77
88env :
9- AZURE_WEBAPP_NAME : static-docs-site
10- AZURE_WEBAPP_PACKAGE_PATH : ' .'
11- NODE_VERSION : ' 20.x'
9+ AZURE_WEBAPP_NAME : static-docs-site # Replace with your Azure Web App name
10+ NODE_VERSION : ' 20.x' # Node version for Docusaurus build
1211
1312jobs :
1413 build-and-deploy :
1514 runs-on : ubuntu-latest
16-
15+
1716 steps :
18- - uses : actions/checkout@v4
19-
20- - name : Setup Node.js
17+ - name : Checkout repository
18+ uses : actions/checkout@v4
19+
20+ - name : Set up Node.js
2121 uses : actions/setup-node@v4
2222 with :
2323 node-version : ${{ env.NODE_VERSION }}
2424 cache : ' npm'
25-
25+
2626 - name : Install dependencies
2727 run : npm ci
28-
29- - name : Build application
28+
29+ - name : Build Docusaurus site
3030 run : npm run build
31-
31+
3232 - name : Deploy to Azure Web App
3333 uses : azure/webapps-deploy@v2
3434 with :
3535 app-name : ${{ env.AZURE_WEBAPP_NAME }}
3636 publish-profile : ${{ secrets.AZURE_WEBAPP_PUBLISH_PROFILE }}
37- package : ${{ env.AZURE_WEBAPP_PACKAGE_PATH }}
37+ package : build # Only deploy the built output folder
You can’t perform that action at this time.
0 commit comments