dep-ygopro-core/scripts/deploy.sh
Edoardo Lolletti 8c9f37fdc2 Rename "travis" folder to "scripts"
It's been called like that for too long
2024-05-21 00:19:41 +02:00

12 lines
385 B
Bash
Executable file

#!/usr/bin/env bash
set -euo pipefail
cd $DEPLOY_DIR
git init
git checkout --orphan $DEPLOY_BRANCH
git config user.email github-actions[bot]@users.noreply.github.com
git config user.name "github-actions[bot]"
git add -A .
git commit -qm "Deploy $DEPLOY_REPO to $DEPLOY_REPO:$DEPLOY_BRANCH"
git push -qf https://$DEPLOY_TOKEN@github.com/$DEPLOY_REPO.git $DEPLOY_BRANCH:$DEPLOY_BRANCH