diff --git a/.github/workflows/deploy_prod.yml b/.github/workflows/deploy_prod.yml deleted file mode 100644 index 4e6f1e3..0000000 --- a/.github/workflows/deploy_prod.yml +++ /dev/null @@ -1,38 +0,0 @@ -name: Production deployment -on: - push: - branches: - - main - -jobs: - build_deploy: - runs-on: ubuntu-latest - steps: - - uses: actions/checkout@v3 - - - name: Use Node.js - uses: actions/setup-node@v3 - with: - node-version: 18 - - - name: Build - run: | - npm install - npm run widget:build - npm run widget:build:preview - - - name: Configure AWS Credentials - uses: aws-actions/configure-aws-credentials@v4 - with: - aws-access-key-id: ${{ secrets.AWS_ACCESS_KEY_ID }} - aws-secret-access-key: ${{ secrets.AWS_SECRET_ACCESS_KEY }} - aws-region: us-west-1 - - - name: Deploy to S3 - run: aws s3 sync ./widget/dist s3://cdn.innovation.ca.gov/br/ --follow-symlinks - - - name: Invalidate Cloudfront - env: - AWS_RETRY_MODE: standard - AWS_MAX_ATTEMPTS: 6 - run: aws cloudfront create-invalidation --distribution-id EAQBFZOLKQ2AZ --paths "/br/*"