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 55# codeigniter4/userguide repo's master branch.
66# See https://github.com/codeigniter4/userguide/blob/master/.github/workflows/deploy.yml
77
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
1015
1116cd " $REPO "
1217git switch master
Original file line number Diff line number Diff line change @@ -4,7 +4,7 @@ name: Deploy Production
44
55on :
66 push :
7- branches :
7+ branches :
88 - master
99
1010jobs :
1919 username : ${{ secrets.USERNAME }}
2020 key : ${{ secrets.KEY }}
2121 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