Skip to content

London10 | Seyyednavid Hejazijouybari | Full-Stack-Project-Assessment | Level 999 #1

London10 | Seyyednavid Hejazijouybari | Full-Stack-Project-Assessment | Level 999

London10 | Seyyednavid Hejazijouybari | Full-Stack-Project-Assessment | Level 999 #1

name: Deploy Frontend CICD
on:
push:
branches: ["main"]
jobs:
deploy:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v2
- name: Setup node
uses: actions/setup-node@v2
- name: Create .env File
run: |
touch ./client/.env
echo "${{ secrets.FRONT_ENV_FILE }}" > ./client/.env
- name: Install dependencies
run: npm install
working-directory: ./client
- name: Create .env File
run: |
touch ./client/.env
echo "${{ secrets.FRONT_ENV_FILE }}" > ./client/.env
- name: Log .env File Content
run: |
cat ./client/.env
# Add this step to log the content of the .env file
- name: Build static files
run: npm run build
<<<<<<< HEAD

Check failure on line 39 in .github/workflows/frontend-deploy.yml

View workflow run for this annotation

GitHub Actions / .github/workflows/frontend-deploy.yml

Invalid workflow file

You have an error in your yaml syntax on line 39
working-directory: ./client
=======
working-directory: ./client
>>>>>>> eaff959b33ba570fa2d71ae9595d2b2fb71cd1a2
- name: Configure AWS Credentials
uses: aws-actions/configure-aws-credentials@v1
with:
aws-access-key-id: ${{ secrets.ACCESS_KEY_ID }}
aws-secret-access-key: ${{ secrets.SECRET_ACCESS_KEY }}
aws-region: eu-west-2
<<<<<<< HEAD
=======
>>>>>>> eaff959b33ba570fa2d71ae9595d2b2fb71cd1a2
- name: Deploy static site to S3 bucket
run: aws s3 sync ./client/build s3://video-recommendation