Skip to content

Merge branch 'main' of https://github.com/Junitalama/city_farm_volunt… #111

Merge branch 'main' of https://github.com/Junitalama/city_farm_volunt…

Merge branch 'main' of https://github.com/Junitalama/city_farm_volunt… #111

name: S3 Deployment
on:
push:
branches:
- main
jobs:
deploy:
runs-on: ubuntu-latest
defaults:
run:
working-directory: ./frontend/farm_volunteers
steps:
- name: Checkout Repository
uses: actions/[email protected]
- name: Configure AWS Credentials
uses: aws-actions/[email protected]
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: Build application
run: |
npm install
npm run build
- name: Sync build folder to S3
run: |
aws s3 sync build/ s3://city-farm