Skip to content

Commit 1cb4d84

Browse files
committed
test 2 for protection
1 parent efd467b commit 1cb4d84

1 file changed

Lines changed: 7 additions & 1 deletion

File tree

.github/workflows/deploy-php.yml

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -49,9 +49,15 @@ jobs:
4949
REMOTE_PORT: ${{ secrets.SSH_PORT }}
5050
TARGET: "/home/cerberus/public_html/theplayground"
5151
SOURCE: "build/"
52-
ARGS: "--dry-run --delete --verbose --filter='P .well-known/' --filter='P cgi-bin/' --filter='P .ftpquota' --filter='P .htaccess'"
52+
ARGS: "--dry-run --delete --verbose --filter='.ssh-deploy-filter'"
5353
EXCLUDE: |
5454
.well-known
5555
cgi-bin
5656
.ftpquota
5757
.htaccess
58+
SCRIPT_BEFORE: |
59+
echo "P .well-known/" > .ssh-deploy-filter
60+
echo "P cgi-bin/" >> .ssh-deploy-filter
61+
echo "P .ftpquota" >> .ssh-deploy-filter
62+
echo "P .htaccess" >> .ssh-deploy-filter
63+

0 commit comments

Comments
 (0)