Skip to content

GitHub Action for Azure Web Apps and Web App for Containers

Compare
Choose a tag to compare
@N-Usha N-Usha released this 16 Jul 04:35
· 17 commits to master since this release
4bfb30b

Automate your GitHub Actions workflow to deploy Azure Web Apps and Azure Web app for Containers using Azure Web App Publish Profile or using Azure Login.

Action supports publish profile for Azure Web Apps (both Windows and Linux) and Azure Web Apps for Containers (Linux only).

Usage

Sample workflow to build and deploy a Web App to Azure using publish profile

# File: .github/workflows/workflow.yml

on: push

jobs:
  build-and-deploy:
    runs-on: ubuntu-latest
    steps:
    # checkout the repo
    - name: 'Checkout Github Action' 
      uses: actions/checkout@master
    
    - name: Setup Node 10.x
      uses: actions/setup-node@v1
      with:
        node-version: '10.x'
    - name: 'npm install, build, and test'
      run: |
        npm install
        npm run build --if-present
        npm run test --if-present
       
    - name: 'Run Azure webapp deploy action using publish profile credentials'
      uses: azure/webapps-deploy@v2
      with: 
        app-name: node-rn
        publish-profile: ${{ secrets.azureWebAppPublishProfile }}
        

License

GitHub Action for Azure Web App is licensed under the MIT License.