Skip to content

Instantly share code, notes, and snippets.

@caioagiani
Created June 29, 2020 16:07
Show Gist options
  • Save caioagiani/385ba5e57b3a80bd4af181f0b6cb09b3 to your computer and use it in GitHub Desktop.
Save caioagiani/385ba5e57b3a80bd4af181f0b6cb09b3 to your computer and use it in GitHub Desktop.
# 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 - crm-wititlc
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: 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@v1
with:
app-name: 'crm-wititlc'
slot-name: 'production'
publish-profile: ${{ secrets.AzureAppService_PublishProfile_83d37758dd434868864b3738a937cfee }}
package: .
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment