Skip to content

Merge pull request #493 from bhklab/gangeshberi-patch-1 #64

Merge pull request #493 from bhklab/gangeshberi-patch-1

Merge pull request #493 from bhklab/gangeshberi-patch-1 #64

# 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 - pharmacodb-new
on:
push:
branches:
- master
jobs:
build-and-deploy:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@master
- name: Set up Node.js version
uses: actions/setup-node@v1
with:
node-version: '12.x'
- name: 'Generate Client Build'
shell: bash
run: |
npm i
pushd ./client
npm i
npm run build
popd
env:
CI: ''
- name: 'Deploy to Azure Web App'
uses: azure/webapps-deploy@v1
with:
app-name: 'pharmacodb-new'
slot-name: 'production'
publish-profile: ${{ secrets.AZURE_PUBLISH_PROFILE }}
package: .