Skip to content

Commit 8a17b18

Browse files
authored
Update azure-webapp-deploy.yml
1 parent 5b6c854 commit 8a17b18

File tree

1 file changed

+2
-21
lines changed

1 file changed

+2
-21
lines changed

.github/workflows/azure-webapp-deploy.yml

Lines changed: 2 additions & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -67,31 +67,12 @@ jobs:
6767
path: build
6868
key: ${{ runner.os }}-build-${{ hashFiles('docs/**', 'sidebars/**', 'src/**', 'static/**', 'docusaurus.config.js', 'package-lock.json') }}
6969

70-
- name: Prepare deployment package
71-
run: |
72-
# Create a minimal package.json for production
73-
echo '{
74-
"name": "docs-static",
75-
"version": "1.0.0",
76-
"private": true,
77-
"dependencies": {
78-
"serve": "^14.2.0"
79-
},
80-
"scripts": {
81-
"start": "serve . -l 8080"
82-
}
83-
}' > build/package.json
84-
85-
# Create deployment archive
86-
cd build
87-
zip -r ../deploy.zip .
88-
8970
- name: Deploy to Azure Web App
9071
uses: azure/webapps-deploy@v2
9172
with:
9273
app-name: ${{ env.AZURE_WEBAPP_NAME }}
9374
publish-profile: ${{ secrets.AZURE_WEBAPP_PUBLISH_PROFILE }}
94-
package: deploy.zip
75+
package: ./build
9576

9677
# Azure App Service will run "npm start" which executes "serve . -l 8080"
97-
# This serves files from the current directory (where the build contents are extracted)
78+
# This serves files from the current directory (where the build contents are extracted)

0 commit comments

Comments
 (0)