File: /www/exchange0old/.github/workflows/dev.yml
name: Dev CD
on:
push:
branches: [ dev ]
jobs:
continuous-deployment:
runs-on: ubuntu-latest
if: github.ref == 'refs/heads/dev'
steps:
# Step 1
- name: Configure AWS credentials
uses: aws-actions/configure-aws-credentials@v1
with:
aws-access-key-id: ${{ secrets.AWS_ACCESS_KEY_ID }}
aws-secret-access-key: ${{ secrets.AWS_SECRET_ACCESS_KEY }}
aws-region: ${{ secrets.AWS_REGION }}
# Step 2
- name: Create CodeDeploy Deployment
id: deploy
run: |
aws deploy create-deployment \
--application-name Exchange2.0 \
--deployment-group-name Exchange2.0-DevGrp \
--deployment-config-name CodeDeployDefault.OneAtATime \
--github-location repository=${{ github.repository }},commitId=${{ github.sha }}