Skip to content

Commit 079d8b8

Browse files
committed
2 parents 2eced89 + ceb92b9 commit 079d8b8

File tree

1 file changed

+12
-16
lines changed

1 file changed

+12
-16
lines changed

.github/workflows/master_server-implementations.yml

Lines changed: 12 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ on:
1111

1212
jobs:
1313
build:
14-
runs-on: windows-latest
14+
runs-on: ubuntu-latest
1515
permissions:
1616
contents: read #This is required for actions/checkout
1717

@@ -28,41 +28,37 @@ jobs:
2828
npm install
2929
npm run build --if-present
3030
npm run test --if-present
31-
31+
32+
- name: Zip artifact for deployment
33+
run: zip release.zip ./* -r
34+
3235
- name: Upload artifact for deployment job
3336
uses: actions/upload-artifact@v4
3437
with:
3538
name: node-app
36-
path: .
39+
path: release.zip
3740

3841
deploy:
3942
runs-on: ubuntu-latest
4043
needs: build
4144
environment:
4245
name: 'Production'
4346
url: ${{ steps.deploy-to-webapp.outputs.webapp-url }}
44-
permissions:
45-
id-token: write #This is required for requesting the JWT
46-
contents: read #This is required for actions/checkout
47-
47+
4848
steps:
4949
- name: Download artifact from build job
5050
uses: actions/download-artifact@v4
5151
with:
5252
name: node-app
53-
54-
- name: Login to Azure
55-
uses: azure/login@v2
56-
with:
57-
client-id: ${{ secrets.AZUREAPPSERVICE_CLIENTID_E9E8EA909566456C8585F893FCDB2109 }}
58-
tenant-id: ${{ secrets.AZUREAPPSERVICE_TENANTID_03F4C2792E374D09AB14723C882ECED3 }}
59-
subscription-id: ${{ secrets.AZUREAPPSERVICE_SUBSCRIPTIONID_079864987F13419CBC7255EC767F6239 }}
6053

54+
- name: Unzip artifact for deployment
55+
run: unzip release.zip
56+
6157
- name: 'Deploy to Azure Web App'
62-
uses: azure/webapps-deploy@v3
6358
id: deploy-to-webapp
59+
uses: azure/webapps-deploy@v3
6460
with:
6561
app-name: 'server-implementations'
6662
slot-name: 'Production'
6763
package: .
68-
64+
publish-profile: ${{ secrets.AZUREAPPSERVICE_PUBLISHPROFILE_57F584B195AA4E4DAE08D580A876837C }}

0 commit comments

Comments
 (0)