Skip to content

Commit

Permalink
update deployment
Browse files Browse the repository at this point in the history
  • Loading branch information
codekansas committed Jun 8, 2024
1 parent 4e32c63 commit f35d3f2
Showing 1 changed file with 19 additions and 2 deletions.
21 changes: 19 additions & 2 deletions .github/workflows/deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ concurrency:
cancel-in-progress: true

jobs:
build-and-deploy:
build-and-deploy-frontend:
runs-on: ubuntu-latest

steps:
Expand All @@ -31,7 +31,6 @@ jobs:
uses: actions/cache/restore@v3
with:
path: |
${{ env.pythonLocation }}
node_modules/
key: deploy-${{ github.event.pull_request.base.sha || github.sha }}
restore-keys: |
Expand All @@ -53,6 +52,24 @@ jobs:
npm run build
working-directory: frontend

- name: Replace S3 contents
uses: jakejarvis/s3-sync-action@master
with:
args: --delete
env:
AWS_S3_BUCKET: ${{ secrets.AWS_FRONTEND_S3_BUCKET }}
AWS_ACCESS_KEY_ID: ${{ secrets.AWS_ACCESS_KEY_ID }}
AWS_SECRET_ACCESS_KEY: ${{ secrets.AWS_SECRET_ACCESS_KEY }}
AWS_REGION: ${{ secrets.AWS_REGION }}
SOURCE_DIR: "frontend/build"

build-and-deploy-backend:
runs-on: ubuntu-latest

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

- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v1

Expand Down

0 comments on commit f35d3f2

Please sign in to comment.