Skip to content

new swag widget

new swag widget #24

Workflow file for this run

name: Deploy
on:
push:
branches: [ node ]
jobs:
deploy:
runs-on: ubuntu-latest
steps:
- name: Access to Server, Remove Docker Containers, Build Docker Image, Run Docker Container
run: |
sshpass -p ${{ secrets.PASSWORD }} ssh -o StrictHostKeyChecking=no ${{ secrets.USER_NAME }}@${{ secrets.SERVER_ADDRESS }} -p ${{ secrets.SSH_PORT }} << 'EOF'
echo ✅ SSH connection successful &&
ls &&
echo ✅ Listing directory &&
echo wow &&
if [ ! -d "/home/deployer/amgno.github.io" ]; then
echo ❌ Directory /home/deployer/amgno.github.io does not exist, creating it &&
mkdir -p /home/deployer/amgno.github.io &&
echo ✅ Directory created
fi &&
cd /home/deployer/amgno.github.io &&
echo ✅ Pulling from GitHub &&
git pull &&
echo ✅ Starting docker &&
echo ${{ secrets.PASSWORD }} | sudo -S docker-compose down &&
echo ${{ secrets.PASSWORD }} | sudo -S docker-compose up -d &&
echo ✅ Done
EOF