File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 3535 echo "Build output files:"
3636 find out/ -type f | head -10
3737
38- - name : Test - Check deployment configuration (PR only)
39- if : github.event_name == 'pull_request'
40- run : |
41- echo "🧪 Testing deployment configuration..."
42- echo "Event: ${{ github.event_name }}"
43- echo "Ref: ${{ github.ref }}"
44- echo "Would deploy on tag creation: ${{ startsWith(github.ref, 'refs/tags/v') }}"
45- echo "FTP_HOST is set: ${{ secrets.FTP_HOST != '' }}"
46- echo "FTP_USERNAME is set: ${{ secrets.FTP_USERNAME != '' }}"
47- echo "FTP_PASSWORD is set: ${{ secrets.FTP_PASSWORD != '' }}"
48- echo "Local directory exists: $([ -d './out/' ] && echo 'Yes' || echo 'No')"
49- if [ -d './out/' ]; then
50- echo "Files to deploy: $(find ./out/ -type f | wc -l)"
51- echo "Directory size: $(du -sh ./out/)"
52- fi
53-
5438 - name : Deploy to FTP (Production)
5539 if : github.event_name == 'pull_request'
5640 uses : SamKirkland/FTP-Deploy-Action@4.3.0
5943 username : ${{ secrets.FTP_USERNAME }}
6044 password : ${{ secrets.FTP_PASSWORD }}
6145 local-dir : ./out/
62- server-dir : www /new/
46+ server-dir : . /new/
6347 exclude : |
6448 **/.git*
6549 **/.git*/**
You can’t perform that action at this time.
0 commit comments