Skip to content

refactor(prettier): prettify js files #16

refactor(prettier): prettify js files

refactor(prettier): prettify js files #16

Workflow file for this run

name: Deploy Gaming Donation Website
on:
push:
branches:
- main
jobs:
Deployment:
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v2
- name: SSH into Remote Server and Deploy
uses: fifsky/ssh-action@master
with:
command: |
cd /root/donations/gaming-donation
docker-compose down
export STRIPE_SK=${{ secrets.STRIPE_SK }}
export STRIPE_WHSEC=${{ secrets.STRIPE_WHSEC }}
export EMAILJS_KEY=${{ secrets.EMAILJS_KEY }}
git pull
GIT_PULL_EXIT_CODE=$?
if [ $GIT_PULL_EXIT_CODE -eq 0 ]; then
echo "Git pull successful. Updating and restarting Docker Compose."
docker-compose pull
docker-compose up -d --build
elif [ $GIT_PULL_EXIT_CODE -eq 1 ]; then
echo "Git pull resulted in conflicts. Resolve conflicts and push changes."
git stash
git pull
docker-compose pull
docker-compose up -d --build
else
echo "Git pull failed. Check repository and credentials."
exit 1
fi
host: ${{ secrets.REMOTE_HOST }}
user: ${{ secrets.REMOTE_USER }}
pass: ${{ secrets.REMOTE_PASSWORD}}