This commit is contained in:
Parsa Nazer
2026-02-14 12:09:34 +03:30
parent 8c31ef527d
commit dd22fe3448
+3 -4
View File
@@ -16,16 +16,15 @@ jobs:
- name: Compress repository - name: Compress repository
run: | run: |
tar -czf repo-backup-$(date +%Y%m%d-%H%M%S).tar.gz \ BACKUP_FILE="repo-backup-$(date +%Y%m%d-%H%M%S).tar.gz"
tar -czf "../$BACKUP_FILE" \
--exclude='.git' \ --exclude='.git' \
--exclude='node_modules' \ --exclude='node_modules' \
--exclude='__pycache__' \ --exclude='__pycache__' \
--exclude='*.pyc' \ --exclude='*.pyc' \
--exclude='db.sqlite3' \ --exclude='db.sqlite3' \
--exclude='.env*' \ --exclude='.env*' \
--exclude='*.tar.gz' \ . && mv "../$BACKUP_FILE" . || true
--warning=no-file-changed \
.
- name: Send compressed repo via email - name: Send compressed repo via email
uses: dawidd6/action-send-mail@v3 uses: dawidd6/action-send-mail@v3