From f167130a622b64e669f5f3d5ccbd09ca0a55e45d Mon Sep 17 00:00:00 2001 From: Benjamin Bolte Date: Sun, 1 Dec 2024 20:35:55 -0800 Subject: [PATCH] only deploy backend --- .github/workflows/deploy.yml | 51 ------------------------------------ 1 file changed, 51 deletions(-) diff --git a/.github/workflows/deploy.yml b/.github/workflows/deploy.yml index 0be83011..03bb069c 100644 --- a/.github/workflows/deploy.yml +++ b/.github/workflows/deploy.yml @@ -14,57 +14,6 @@ concurrency: cancel-in-progress: true jobs: - frontend: - runs-on: ubuntu-latest - - steps: - - name: Checkout repository - uses: actions/checkout@v3 - - - name: Set up Node.js - uses: actions/setup-node@v3 - with: - node-version: "20" - - - name: Restore cache - id: restore-cache - uses: actions/cache/restore@v3 - with: - path: | - node_modules/ - key: deploy-${{ github.event.pull_request.base.sha || github.sha }} - restore-keys: | - deploy- - - - name: Install Node package - working-directory: frontend - run: | - npm install - - - name: Write .env.production - working-directory: frontend - run: | - echo "VITE_APP_BACKEND_URL=https://api.kscale.dev" >> .env.production - echo "VITE_STRIPE_PUBLISHABLE_KEY=${{ secrets.VITE_STRIPE_PUBLISHABLE_KEY }}" >> .env.production - - - name: Build frontend - run: | - npm run build - working-directory: frontend - - - name: Configure 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: us-east-1 - - - name: Replace S3 bucket contents - run: | - aws s3 rm s3://${{ secrets.AWS_FRONTEND_S3_BUCKET }} --recursive - aws s3 cp frontend/dist s3://${{ secrets.AWS_FRONTEND_S3_BUCKET }} --recursive - aws cloudfront create-invalidation --distribution-id ${{ secrets.AWS_CLOUDFRONT_DISTRIBUTION_ID }} --paths "/*" - backend: runs-on: ubuntu-latest