Skip to content

Update ci.yml

Update ci.yml #4

Workflow file for this run

name: 'application deployment'
on:
push:
branches:
- main
pull_request:
branches:
- main
types: [opened, synchronize]
jobs:
build:
runs-on: ubuntu-latest
steps:
- name: checkout
uses: actions/checkout@v4
- name: action
run: echo Compile step!
deploy-dev-migrations:
if: github.ref == 'refs/heads/main'
needs: build
runs-on: ubuntu-latest
environment:
name: dev
url: https://dev.sample.com
steps:
- name: action
run: echo Deploy dev migrations
deploy-dev:
needs: deploy-dev-migrations
runs-on: ubuntu-latest
steps:
- name: action
run: echo Deploy dev
deploy-dev-e2e:
needs: deploy-dev
runs-on: ubuntu-latest
steps:
- name: action
run: echo Deploy dev e2e
deploy-stage-migrations:
needs: deploy-dev-e2e
runs-on: ubuntu-latest
environment:
name: stage
url: https://stage.sample.com
steps:
- name: action
run: echo Deploy stage migrations
deploy-stage:
needs: deploy-stage-migrations
runs-on: ubuntu-latest
steps:
- name: action
run: echo Deploy stage
deploy-stage-e2e:
needs: deploy-stage
runs-on: ubuntu-latest
steps:
- name: action
run: echo Deploy stage e2e
deploy-prod-migrations:
needs: deploy-stage-e2e
runs-on: ubuntu-latest
environment:
name: prod
url: https://prod.sample.com
steps:
- name: action
run: echo Deploy prod migrations
deploy-prod:
needs: deploy-prod-migrations
runs-on: ubuntu-latest
steps:
- name: action
run: echo Deploy prod
deploy-prod-e2e:
needs: deploy-prod
runs-on: ubuntu-latest
steps:
- name: action
run: echo Deploy prod e2e