File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 4848 - name : Build nemanjamiticcom
4949 run : pnpm build
5050
51- - name : Start timer
52- run : echo "START_TIME=$(date +%s)" >> $GITHUB_ENV
51+ - name : Clean up website dir
52+ uses : appleboy/ssh-action@master
53+ with :
54+ host : ${{ secrets.REMOTE_HOST }}
55+ username : ${{ secrets.REMOTE_USERNAME }}
56+ key : ${{ secrets.REMOTE_KEY_ED25519 }}
57+ port : ${{ secrets.REMOTE_PORT }}
58+ script_stop : true
59+ script : |
60+ cd /home/ubuntu/traefik-proxy/apps/nmc-nginx-with-volume/website
61+ echo "Content before deletion: $(pwd)"
62+ ls -la
63+ rm -rf ./*
64+ echo "Content after deletion: $(pwd)"
65+ ls -la
5366
5467 - name : Deploy dist via rsync
5568 uses : burnett01/rsync-deployments@v8
6174 remote_user : ${{ secrets.REMOTE_USERNAME }}
6275 remote_port : ${{ secrets.REMOTE_PORT }}
6376 remote_key : ${{ secrets.REMOTE_KEY_ED25519 }}
64-
65- - name : Print duration
66- run : |
67- END=$(date +%s)
68- echo "Deployment took $((END - START_TIME)) seconds"
You can’t perform that action at this time.
0 commit comments