diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 63e657d7..98ec0072 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -81,8 +81,7 @@ jobs: - uses: actions/download-artifact@v1 with: name: public - - name: Deploy to S3 - run: ./scripts/deploy-s3.sh + - run: npm run deploy env: AWS_ACCESS_KEY_ID: ${{ secrets.AWS_ACCESS_KEY_ID }} AWS_SECRET_ACCESS_KEY: ${{ secrets.AWS_SECRET_ACCESS_KEY }} diff --git a/README.md b/README.md index 7daf5bd4..7fa62ef1 100644 --- a/README.md +++ b/README.md @@ -233,16 +233,14 @@ npm run new photo /path/to/photo.jpg ## 🚚 Deployment -Every branch or Pull Request is automatically deployed by [Vercel](https://vercel.com) with their GitHub integration. A link to a preview deployment will appear under each Pull Request. - -The latest deployment of the `main` branch is automatically aliased to `kremalicious.com`. +Every branch or Pull Request is automatically deployed by [Vercel](https://vercel.com) with their GitHub integration. A link to a preview deployment will appear under each Pull Request. Because of Vercel's maximum cache size of 500MB, Vercel is not used for the production deployment. ### S3 Deployment -The deploy command simply calls the [`scripts/deploy-s3.sh`](scripts/deploy-s3.sh) script, syncing the contents of the `public/` folder to S3: +The latest deployment of the `main` branch is automatically deployed to S3 from the GitHub Action as the production deployment, aliased to `kremalicious.com`. The deploy command simply calls the [`scripts/deploy-s3.sh`](scripts/deploy-s3.sh) script, syncing the contents of the `public/` folder to S3: ```bash -npm run deploy:s3 +npm run deploy ``` ## 🏛 Licenses diff --git a/package.json b/package.json index 740abc59..92ca6713 100644 --- a/package.json +++ b/package.json @@ -19,7 +19,7 @@ "lint:md": "markdownlint './**/*.{md,markdown}' --ignore './{node_modules,public,.cache,.git,coverage}/**/*'", "format": "prettier --ignore-path .gitignore --write '**/*.{js,jsx,ts,tsx,md,json,css,scss}'", "tsc": "tsc --noEmit", - "deploy:s3": "./scripts/deploy.sh", + "deploy": "./scripts/deploy-s3.sh", "new": "babel-node ./scripts/new.js" }, "browserslist": [