Environment Approval #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: Environment Approval | |
on: | |
workflow_dispatch: | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
steps: | |
- name: build | |
run: echo Building code | |
deploy_NonPROD: | |
needs: [build] | |
runs-on: ubuntu-latest | |
environment: NonPROD | |
steps: | |
- name: test | |
run: echo deploy to environment NonPROD | |
deploy_PROD: | |
needs: [deploy_NonPROD] | |
runs-on: ubuntu-latest | |
environment: PROD | |
steps: | |
- name: test | |
run: echo deploy to environment PROD |