Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
44 changes: 44 additions & 0 deletions .github/workflows/aws.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,44 @@
name: Deploy to EC2

# Trigger the workflow on push to the 'cicd' branch
on:
push:
branches:
- cicd

jobs:
deploy1:
runs-on: ubuntu-latest

steps:
- name: Checkout
uses: actions/checkout@v2
- name: run a linux command
run: ls -la

deploy2:
runs-on: ubuntu-latest
needs: deploy1
steps:
- name: Checkout
uses: actions/checkout@v2
- name: run a linux command
run: cat index.html

deploy3:
runs-on: ubuntu-latest
needs: deploy1
steps:
- name: Checkout
uses: actions/checkout@v2
- name: run a linux command
run: ls -la

deploy4:
runs-on: ubuntu-latest
needs: deploy2
steps:
- name: Checkout
uses: actions/checkout@v2
- name: run a linux command
run: cat index.html