2017-04-11 20:00:07 +02:00
|
|
|
#!/bin/sh
|
2020-07-15 20:53:19 +02:00
|
|
|
if [ $CIRCLE_EVENT_TYPE != "push" -o $CIRCLE_BRANCH != "main" ]; then
|
|
|
|
echo This job is not running against a commit that has been merged to main.
|
2017-04-11 20:00:07 +02:00
|
|
|
echo Skipping deployment.
|
|
|
|
exit 0
|
|
|
|
fi
|
|
|
|
openssl aes-256-cbc \
|
2017-04-24 21:11:02 +02:00
|
|
|
-K $encrypted_4c3763264a8a_key \
|
|
|
|
-iv $encrypted_4c3763264a8a_iv \
|
2017-04-11 20:00:07 +02:00
|
|
|
-in github-deploy-key.enc \
|
|
|
|
-out github-deploy-key \
|
|
|
|
-d
|
|
|
|
chmod 600 github-deploy-key
|
|
|
|
eval "$(ssh-agent -s)"
|
|
|
|
ssh-add github-deploy-key
|
|
|
|
rm github-deploy-key
|
|
|
|
git config --global user.email "test262@ecma-international.org"
|
|
|
|
git config --global user.name "Test262 Automation Script"
|
2020-07-15 20:53:19 +02:00
|
|
|
# The repository on TravisCI is a shallow clone, so the `main` branch must
|
2017-04-11 20:00:07 +02:00
|
|
|
# be retrieved explicitly, and a local branch created from the `FETCH_HEAD`
|
|
|
|
# git reference
|
2020-07-15 20:53:19 +02:00
|
|
|
git fetch origin main
|
|
|
|
git branch main FETCH_HEAD
|
2017-04-11 20:00:07 +02:00
|
|
|
./make.py deploy
|