diff --git a/.github/workflows/aws.yml b/.github/workflows/aws.yml new file mode 100644 index 0000000..18c4a4a --- /dev/null +++ b/.github/workflows/aws.yml @@ -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