Skip to content

Commit

Permalink
Update frontend.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
OlhaDanylevska committed Feb 24, 2024
1 parent 2c9cf1c commit bd47714
Showing 1 changed file with 18 additions and 8 deletions.
26 changes: 18 additions & 8 deletions .github/workflows/frontend.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,15 +11,16 @@ jobs:
defaults:
run:
working-directory: ./client

steps:
- name: Checkout code
uses: actions/checkout@v3

- name: Setup Node.js
- name: Set up Node.js
uses: actions/setup-node@v3
with:
node-version: '14'

- name: Clear npm cache
run: npm cache clean -f

- name: Install dependencies
run: npm install
Expand All @@ -30,9 +31,18 @@ jobs:
- name: Debug
run: ls -la build

- name: Set 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: eu-west-2

- name: Copy to S3
run: |
aws configure set aws_access_key_id ${{ secrets.AWS_ACCESS_KEY_ID }}
aws configure set aws_secret_access_key ${{ secrets.AWS_SECRET_ACCESS_KEY }}
aws configure set default.region eu-west-2
aws s3 sync ./client/build/ s3://video-app-olha
run: |
aws configure set aws_access_key_id ${{ secrets.AWS_ACCESS_KEY_ID }}
aws configure set aws_secret_access_key ${{ secrets.AWS_SECRET_ACCESS_KEY }}
aws configure set default.region eu-west-2
aws s3 sync ./build/ s3://video-app-olha

0 comments on commit bd47714

Please sign in to comment.