Skip to content

Commit 9297892

Browse files
authored
Update azure-webapp-deploy.yml
1 parent 4d00ed4 commit 9297892

File tree

1 file changed

+15
-15
lines changed

1 file changed

+15
-15
lines changed
Lines changed: 15 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -1,37 +1,37 @@
1-
name: Deploy to Azure App Service
1+
name: Deploy Docusaurus to Azure Web App
22

33
on:
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

88
env:
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

1312
jobs:
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

0 commit comments

Comments
 (0)