Skip to content

Commit 2336204

Browse files
main_rayscloudapp.yml
1 parent 016c957 commit 2336204

1 file changed

Lines changed: 19 additions & 60 deletions

File tree

Lines changed: 19 additions & 60 deletions
Original file line numberDiff line numberDiff line change
@@ -1,65 +1,24 @@
1-
# Docs for the Azure Web Apps Deploy action: https://github.com/Azure/webapps-deploy
2-
# More GitHub Actions for Azure: https://github.com/Azure/actions
1+
# .github/workflows/main_rayscloudapp.yml
32

4-
name: Build and deploy Node.js app to Azure Web App - RaysCloudApp
3+
name: Deploy Static HTML to Azure
54

65
on:
7-
push:
8-
branches:
9-
- main
10-
workflow_dispatch:
6+
push:
7+
branches:
8+
- main
9+
workflow_dispatch:
1110

1211
jobs:
13-
build:
14-
runs-on: ubuntu-latest
15-
permissions:
16-
contents: read #This is required for actions/checkout
17-
18-
steps:
19-
- uses: actions/checkout@v4
20-
21-
- name: Set up Node.js version
22-
uses: actions/setup-node@v3
23-
with:
24-
node-version: '20.x'
25-
26-
- name: npm install, build, and test
27-
run: |
28-
npm install
29-
npm run build --if-present
30-
npm run test --if-present
31-
32-
- name: Upload artifact for deployment job
33-
uses: actions/upload-artifact@v4
34-
with:
35-
name: node-app
36-
path: .
37-
38-
deploy:
39-
runs-on: ubuntu-latest
40-
needs: build
41-
permissions:
42-
id-token: write #This is required for requesting the JWT
43-
contents: read #This is required for actions/checkout
44-
45-
steps:
46-
- name: Download artifact from build job
47-
uses: actions/download-artifact@v4
48-
with:
49-
name: node-app
50-
51-
- name: Login to Azure
52-
uses: azure/login@v2
53-
with:
54-
client-id: ${{ secrets.AZUREAPPSERVICE_CLIENTID_035B7523425E43E2B420DD51385C8CCD }}
55-
tenant-id: ${{ secrets.AZUREAPPSERVICE_TENANTID_44A69BC9FADC4546981D577666713C22 }}
56-
subscription-id: ${{ secrets.AZUREAPPSERVICE_SUBSCRIPTIONID_F9D2ABC498E24F7F916F00D7BD5AEAA4 }}
57-
58-
- name: 'Deploy to Azure Web App'
59-
id: deploy-to-webapp
60-
uses: azure/webapps-deploy@v3
61-
with:
62-
app-name: 'RaysCloudApp'
63-
slot-name: 'Production'
64-
package: .
65-
12+
deploy:
13+
runs-on: ubuntu-latest
14+
15+
steps:
16+
- name: Checkout code
17+
uses: actions/checkout@v2
18+
19+
- name: Deploy to Azure Web App
20+
uses: azure/webapps-deploy@v2
21+
with:
22+
app-name: RaysCloudApp # Update this if your Azure App name is different
23+
publish-profile: ${{ secrets.AZUREAPPSERVICE_PUBLISHPROFILE }}
24+
package: .

0 commit comments

Comments
 (0)