File tree Expand file tree Collapse file tree 2 files changed +9
-4
lines changed Expand file tree Collapse file tree 2 files changed +9
-4
lines changed Original file line number Diff line number Diff line change 5
5
# codeigniter4/userguide repo's master branch.
6
6
# See https://github.com/codeigniter4/userguide/blob/master/.github/workflows/deploy.yml
7
7
8
- REPO=/opt/userguide
9
- SITE=/home/public_html/userguides/userguide4
8
+ REPO=" /opt/userguide"
9
+ SITE=" /home/public_html/userguides/userguide4"
10
+
11
+ if [ " $( id -u) " = " 0" ]; then
12
+ echo " Cannot be run as root. Please run as the user for deployment."
13
+ exit 1
14
+ fi
10
15
11
16
cd " $REPO "
12
17
git switch master
Original file line number Diff line number Diff line change @@ -4,7 +4,7 @@ name: Deploy Production
4
4
5
5
on :
6
6
push :
7
- branches :
7
+ branches :
8
8
- master
9
9
10
10
jobs :
19
19
username : ${{ secrets.USERNAME }}
20
20
key : ${{ secrets.KEY }}
21
21
port : ${{ secrets.PORT }}
22
- script : /opt/userguide/.github/scripts/deploy
22
+ script : /opt/userguide/.github/scripts/deploy.sh
You can’t perform that action at this time.
0 commit comments