Skip to content

Commit f35d27a

Browse files
author
opencode
committed
fix: replace cp --exclude with tar --exclude in backup workflow
1 parent 2bf3390 commit f35d27a

1 file changed

Lines changed: 6 additions & 4 deletions

File tree

‎.github/workflows/backup.yml‎

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -26,10 +26,12 @@ jobs:
2626
- name: Create full tarball
2727
run: |
2828
DATE=$(date +%Y-%m-%d)
29-
mkdir -p /tmp/mochios-backup
30-
cp -r --exclude='.git' --exclude='bin' --exclude='guest' --exclude='mochi-engine' . /tmp/mochios-backup/mochios-$DATE/
31-
tar czf "mochios-$DATE.tar.gz" -C /tmp/mochios-backup mochios-$DATE/
32-
rm -rf /tmp/mochios-backup
29+
tar czf "mochios-$DATE.tar.gz" \
30+
--exclude='.git' \
31+
--exclude='bin' \
32+
--exclude='guest' \
33+
--exclude='mochi-engine' \
34+
.
3335
3436
- name: Upload bundle artifact
3537
uses: actions/upload-artifact@v4

0 commit comments

Comments
 (0)