1
0
mirror of https://github.com/kremalicious/blog.git synced 2025-02-14 21:10:25 +01:00

update docs

This commit is contained in:
Matthias Kretschmann 2021-01-30 21:44:40 +01:00
parent fc5e273479
commit eb3ab3301c
Signed by: m
GPG Key ID: 606EEEF3C479A91F
3 changed files with 5 additions and 8 deletions

View File

@ -81,8 +81,7 @@ jobs:
- uses: actions/download-artifact@v1 - uses: actions/download-artifact@v1
with: with:
name: public name: public
- name: Deploy to S3 - run: npm run deploy
run: ./scripts/deploy-s3.sh
env: env:
AWS_ACCESS_KEY_ID: ${{ secrets.AWS_ACCESS_KEY_ID }} AWS_ACCESS_KEY_ID: ${{ secrets.AWS_ACCESS_KEY_ID }}
AWS_SECRET_ACCESS_KEY: ${{ secrets.AWS_SECRET_ACCESS_KEY }} AWS_SECRET_ACCESS_KEY: ${{ secrets.AWS_SECRET_ACCESS_KEY }}

View File

@ -233,16 +233,14 @@ npm run new photo /path/to/photo.jpg
## 🚚 Deployment ## 🚚 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. 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.
The latest deployment of the `main` branch is automatically aliased to `kremalicious.com`.
### S3 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 ```bash
npm run deploy:s3 npm run deploy
``` ```
## 🏛 Licenses ## 🏛 Licenses

View File

@ -19,7 +19,7 @@
"lint:md": "markdownlint './**/*.{md,markdown}' --ignore './{node_modules,public,.cache,.git,coverage}/**/*'", "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}'", "format": "prettier --ignore-path .gitignore --write '**/*.{js,jsx,ts,tsx,md,json,css,scss}'",
"tsc": "tsc --noEmit", "tsc": "tsc --noEmit",
"deploy:s3": "./scripts/deploy.sh", "deploy": "./scripts/deploy-s3.sh",
"new": "babel-node ./scripts/new.js" "new": "babel-node ./scripts/new.js"
}, },
"browserslist": [ "browserslist": [