Skip to content

Commit 6c3acf5

Browse files
authored
Exclude .git from archived build, instead of deleting it (#8402)
1 parent aef5468 commit 6c3acf5

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

.github/workflows/test-all.yml

+1-3
Original file line numberDiff line numberDiff line change
@@ -50,12 +50,10 @@ jobs:
5050
yarn
5151
- name: yarn build
5252
run: yarn build
53-
- name: Remove git directory
54-
run: rm -rf .git
5553
- name: Archive build
5654
if: ${{ !cancelled() }}
5755
run: |
58-
tar -cf build.tar .
56+
tar -cf build.tar --exclude=.git .
5957
gzip build.tar
6058
- name: Upload build archive
6159
if: ${{ !cancelled() }}

0 commit comments

Comments
 (0)