I have a repo with multiple branches on GitHub. CI is enabled with GitHub Actions. The idea is to run the jobs in action whenever development branch is updated(push or merge into development branch). Note that development branch is not the default branch. And I want each step in the job or the entire job itself to run only on development branch. The following is my GitHub action workflow yaml file:
name: TARegistry3UI CI
on:
push:
branches:
- development
pull_request:
branches:
- development
workflow_dispatch:
jobs:
development-build-deploy:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: build
run: |
docker network create shared
docker-compose up --build -d
- name: 'Deploy to Azure WebApp'
uses: azure/webapps-deploy@v2
with:
publish-profile: ${{ secrets.AZURE_WEBAPP_PUBLISH_PROFILE }}