Skip to content

Fixed item icons (hopefully)🙂...hlA:) #63

Fixed item icons (hopefully)🙂...hlA:)

Fixed item icons (hopefully)🙂...hlA:) #63

Workflow file for this run

name: Deploy to EC2
on:
push:
branches:
- ft-rework
jobs:
deploy:
if: github.repository == 'simple-works/ACT'
runs-on: ubuntu-latest
steps:
- name: Checkout repository
uses: actions/checkout@v4
- name: Deploy to EC2
uses: appleboy/[email protected]
with:
host: ${{ secrets.EC2_HOST }}
username: ${{ secrets.EC2_USER }}
key: ${{ secrets.EC2_SSH_KEY }}
command_timeout: "20m"
script: |
if [ ! -d "/home/ubuntu/ACT/" ]; then
echo "Directory /home/ubuntu/ACT/ does not exist. Creating and cloning..."
mkdir -p /home/ubuntu/ACT/
cd /home/ubuntu/ACT/
git clone --depth 1 https://github.com/simple-works/ACT.git .
git checkout ft-rework
else
echo "Directory /home/ubuntu/ACT/ exists. Fetching and resetting..."
cd /home/ubuntu/ACT/
if [ ! -d ".git" ]; then
echo "No git repo found, Re-cloning..."
rm -rf *
git clone --depth 1 https://github.com/simple-works/ACT.git .
git checkout ft-rework
else
git fetch fork ft-rework
git reset --hard fork/ft-rework
fi
fi
sudo systemctl restart act-app.service
sleep 3
sudo systemctl status act-app.service --no-pager
# script: |
# cd /home/ubuntu/ACT/
# git fetch fork ft-rework
# git reset --hard fork/ft-rework
# sudo systemctl restart act-app.service
# sleep 3
# sudo systemctl status act-app.service --no-pager