Skip to content

Commit

Permalink
Add or update the App Service deployment workflow configuration from …
Browse files Browse the repository at this point in the history
…Azure Portal.
  • Loading branch information
nadvolod committed Jan 30, 2021
1 parent f7bb179 commit 077a9a2
Showing 1 changed file with 35 additions and 0 deletions.
35 changes: 35 additions & 0 deletions .github/workflows/master_nikolay-react.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,35 @@
# Docs for the Azure Web Apps Deploy action: https://github.com/Azure/webapps-deploy
# More GitHub Actions for Azure: https://github.com/Azure/actions

name: Build and deploy Node.js app to Azure Web App - nikolay-react

on:
push:
branches:
- master

jobs:
build-and-deploy:
runs-on: windows-latest

steps:
- uses: actions/checkout@master

- name: Set up Node.js version
uses: actions/setup-node@v1
with:
node-version: '12.13.0'

- name: npm install, build, and test
run: |
npm install
npm run build --if-present
npm run test --if-present
- name: 'Deploy to Azure Web App'
uses: azure/webapps-deploy@v2
with:
app-name: 'nikolay-react'
slot-name: 'production'
publish-profile: ${{ secrets.AzureAppService_PublishProfile_beb0a9f8c66246119ef00e3abd37b968 }}
package: .

0 comments on commit 077a9a2

Please sign in to comment.