-
-
Save JacobBennett/16d93cd382f986e087fad4b152e80646 to your computer and use it in GitHub Desktop.
North Meets South - Episode 142
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
set -e | |
cd {{release}} | |
# FOR USE IN DEBUGGING | |
# php8.2 artisan airdrop:hash | |
# php8.2 artisan airdrop:debug | |
php8.2 artisan airdrop:download --verbose | |
# Abort if no assets present | |
if [ ! -f ".airdrop_skip" ]; then | |
echo "No assets available, aborting deployment."; | |
exit 1; | |
fi |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
... | |
- name: Airdrop Download | |
env: | |
AWS_ACCESS_KEY_ID: ${{ secrets.AWS_ACCESS_KEY_ID }} | |
AWS_SECRET_ACCESS_KEY: ${{ secrets.AWS_SECRET_ACCESS_KEY }} | |
AWS_DEFAULT_REGION: ${{ secrets.AWS_DEFAULT_REGION }} | |
run: php artisan airdrop:download --verbose | |
- name: Airdrop Skip | |
run: | | |
# Skip several steps if we can. | |
if [ ! -f ".airdrop_skip" ]; then | |
npm ci | |
# NOTE: CHANGE TO npm run prod IF USING LARAVEL MIX | |
npm run build | |
fi | |
- name: Airdrop Upload | |
env: | |
AWS_ACCESS_KEY_ID: ${{ secrets.AWS_ACCESS_KEY_ID }} | |
AWS_SECRET_ACCESS_KEY: ${{ secrets.AWS_SECRET_ACCESS_KEY }} | |
AWS_DEFAULT_REGION: ${{ secrets.AWS_DEFAULT_REGION }} | |
run: php artisan airdrop:upload --verbose | |
... |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"Version": "2012-10-17", | |
"Statement": [ | |
{ | |
"Effect": "Allow", | |
"Action": [ | |
"s3:ListBucket" | |
], | |
"Resource": [ | |
"arn:aws:s3:::airdrop-assets" | |
] | |
}, | |
{ | |
"Effect": "Allow", | |
"Action": [ | |
"s3:PutObject", | |
"s3:GetObject", | |
"s3:DeleteObject" | |
], | |
"Resource": [ | |
"arn:aws:s3:::airdrop-assets/${aws:username}/*" | |
] | |
} | |
] | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment