Skip to content

Commit

Permalink
chore: 调整github action
Browse files Browse the repository at this point in the history
  • Loading branch information
John251314 committed Nov 5, 2024
1 parent f29460b commit abc87bb
Showing 1 changed file with 3 additions and 6 deletions.
9 changes: 3 additions & 6 deletions .github/workflows/azure-webapps-node.yml
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@ jobs:
# npm run test --if-present

- name: Upload artifact for deployment job
uses: actions/upload-artifact@v4
uses: actions/upload-artifact@v3
with:
name: node-app
path: .
Expand All @@ -70,18 +70,15 @@ jobs:

steps:
- name: Download artifact from build job
uses: actions/download-artifact@v4
uses: actions/download-artifact@v3
with:
name: node-app

- name: Unzip artifact for deployment
run: unzip node-app.zip

- name: 'Deploy to Azure Web App'
id: deploy-to-webapp
uses: azure/webapps-deploy@v3
with:
app-name: 'codepush-1105'
slot-name: 'Production'
package: .
package: ${{ env.AZURE_WEBAPP_PACKAGE_PATH }}
publish-profile: ${{ secrets.AzureAppService_PublishProfile_9f63a62d8bd64e8791183bdf2abbd43b }}

0 comments on commit abc87bb

Please sign in to comment.