]>
Commit | Line | Data |
---|---|---|
1 | #!/usr/bin/env sh | |
2 | ||
3 | set -xe | |
4 | ||
5 | exit 1 | |
6 | ||
7 | touch .env | |
8 | ||
9 | if [ "$(git rev-parse origin/main)" == "$(git rev-parse HEAD)" ]; then \ | |
10 | echo "Deploying to Production" | |
11 | export S3_BUCKET=unlimited.pizza; | |
12 | sudo make environment=production upload | |
13 | exit 0; | |
14 | fi | |
15 | ||
16 | echo "Deploying to Dev" | |
17 | export S3_BUCKET=limited.pizza; | |
18 | sudo make upload |