Update blank.yml #6
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Test run deployment | |
on: | |
push: | |
pull_request: | |
branches: [ "pavandev", "pavannp" ] | |
workflow_dispatch: | |
jobs: | |
Build: | |
runs-on: ubuntu-latest | |
steps: | |
- name: printing statement | |
run: echo This is Build | |
DevDeployment: | |
if: github.event.ref == 'refs/heads/pavandev' | |
needs: Build | |
environment: | |
name: Development | |
runs-on: ubuntu-latest | |
steps: | |
- name: Print statement | |
run: echo "Development deployment" | |
SandboxDeployment: | |
name: Sandbox environment | |
if: github.event.ref == 'refs/heads/pavandev' | |
needs: Build | |
environment: | |
name: Sandbox | |
runs-on: ubuntu-latest | |
steps: | |
- name: Print statement | |
run: echo "This is sandbox" | |
ProductionDeployment: | |
runs-on: ubuntu-latest | |
needs: SandboxDeployment | |
environment: | |
name: Production | |
steps: | |
- name: Print statement | |
run: echo "This is Production" | |