Skip to content

added a useEnum file for all frontend enumerations and updated the In… #25

added a useEnum file for all frontend enumerations and updated the In…

added a useEnum file for all frontend enumerations and updated the In… #25

Workflow file for this run

name: Deploy to EC2 instance
on:
push:
branches: [main]
jobs:
deployment:
runs-on: ubuntu-latest
steps:
- name: Check out repository
uses: actions/checkout@v4.1.7
- name: Configure AWS credentials
uses: aws-actions/configure-aws-credentials@v4
with:
aws-region: eu-north-1
aws-access-key-id: ${{ secrets.ACCESS_KEY }}
aws-secret-access-key: ${{ secrets.SECRET_ACCESS_KEY }}
- name: Deploy and build
run: |
aws ssm send-command \
--instance-ids "i-0ceef8e041cbec9af" \
--document-name "AWS-RunShellScript" \
--parameters 'commands=["sudo -u ubuntu /bin/bash -c \"cd /var/www/TalkTherapy && git stash && git pull origin main && npm install && npm run build && composer install && php artisan cache:clear \"",]' \
--comment "Deploying TalkTherapy code"