Skip to content

Commit 1a1baea

Browse files
authored
Comment out EC2 deployment workflow
Comment out the entire deploy workflow configuration.
1 parent 3c79044 commit 1a1baea

File tree

1 file changed

+46
-46
lines changed

1 file changed

+46
-46
lines changed

.github/workflows/deploy.yml

Lines changed: 46 additions & 46 deletions
Original file line numberDiff line numberDiff line change
@@ -1,53 +1,53 @@
1-
name: Deploy to EC2
1+
# name: Deploy to EC2
22

3-
on:
4-
push:
5-
branches:
6-
- main
3+
# on:
4+
# push:
5+
# branches:
6+
# - main
77

8-
jobs:
9-
deploy:
8+
# jobs:
9+
# deploy:
1010

11-
runs-on: ubuntu-latest
11+
# runs-on: ubuntu-latest
1212

13-
steps:
14-
- name: Checkout repository
15-
uses: actions/checkout@v4
13+
# steps:
14+
# - name: Checkout repository
15+
# uses: actions/checkout@v4
1616

17-
- name: Deploy to EC2
18-
uses: appleboy/ssh-action@v1.2.1
19-
with:
20-
host: ${{ secrets.EC2_HOST }}
21-
username: ${{ secrets.EC2_USER }}
22-
key: ${{ secrets.EC2_SSH_KEY }}
23-
command_timeout: "20m"
24-
script: |
25-
APP_DIR="/home/ubuntu/ACT"
26-
REPO_URL="https://github.com/Comon-tech/ACT.git"
27-
REMOTE="fork"
28-
BRANCH="main"
17+
# - name: Deploy to EC2
18+
# uses: appleboy/ssh-action@v1.2.1
19+
# with:
20+
# host: ${{ secrets.EC2_HOST }}
21+
# username: ${{ secrets.EC2_USER }}
22+
# key: ${{ secrets.EC2_SSH_KEY }}
23+
# command_timeout: "20m"
24+
# script: |
25+
# APP_DIR="/home/ubuntu/ACT"
26+
# REPO_URL="https://github.com/Comon-tech/ACT.git"
27+
# REMOTE="fork"
28+
# BRANCH="main"
2929

30-
if [ ! -d "$APP_DIR" ]; then
31-
echo "Directory $APP_DIR does not exist. Creating and cloning..."
32-
mkdir -p "$APP_DIR"
33-
cd "$APP_DIR"
34-
git clone --depth 1 "$REPO_URL" .
35-
git checkout "$BRANCH"
36-
else
37-
cd "$APP_DIR"
38-
if [ ! -d ".git" ]; then
39-
echo "No git repo found, Re-cloning..."
40-
rm -rf *
41-
git clone --depth 1 "$REPO_URL" .
42-
git checkout "$BRANCH"
43-
else
44-
echo "Fetching and resetting..."
45-
git fetch "$REMOTE" "$BRANCH"
46-
git reset --hard "$REMOTE"/"$BRANCH"
47-
fi
48-
fi
30+
# if [ ! -d "$APP_DIR" ]; then
31+
# echo "Directory $APP_DIR does not exist. Creating and cloning..."
32+
# mkdir -p "$APP_DIR"
33+
# cd "$APP_DIR"
34+
# git clone --depth 1 "$REPO_URL" .
35+
# git checkout "$BRANCH"
36+
# else
37+
# cd "$APP_DIR"
38+
# if [ ! -d ".git" ]; then
39+
# echo "No git repo found, Re-cloning..."
40+
# rm -rf *
41+
# git clone --depth 1 "$REPO_URL" .
42+
# git checkout "$BRANCH"
43+
# else
44+
# echo "Fetching and resetting..."
45+
# git fetch "$REMOTE" "$BRANCH"
46+
# git reset --hard "$REMOTE"/"$BRANCH"
47+
# fi
48+
# fi
4949

50-
echo "Restarting service..."
51-
sudo systemctl restart act-app.service
52-
sleep 3
53-
sudo systemctl status act-app.service --no-pager
50+
# echo "Restarting service..."
51+
# sudo systemctl restart act-app.service
52+
# sleep 3
53+
# sudo systemctl status act-app.service --no-pager

0 commit comments

Comments
 (0)