Skip to content

Commit f05fab9

Browse files
committed
measure time rsync
1 parent 29589c7 commit f05fab9

1 file changed

Lines changed: 8 additions & 0 deletions

File tree

.github/workflows/default__deploy-nginx-rsync.yml

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -48,6 +48,9 @@ jobs:
4848
- name: Build nemanjamiticcom
4949
run: pnpm build
5050

51+
- name: Start timer
52+
run: echo "START_TIME=$(date +%s)" >> $GITHUB_ENV
53+
5154
- name: Deploy dist via rsync
5255
uses: burnett01/rsync-deployments@v8
5356
with:
@@ -58,3 +61,8 @@ jobs:
5861
remote_user: ${{ secrets.REMOTE_USERNAME }}
5962
remote_port: ${{ secrets.REMOTE_PORT }}
6063
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"

0 commit comments

Comments
 (0)