Skip to content

Commit 3844902

Browse files
committed
fix tar
1 parent c3fe6c0 commit 3844902

File tree

1 file changed

+7
-1
lines changed

1 file changed

+7
-1
lines changed

.github/workflows/release.yml

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -97,7 +97,13 @@ jobs:
9797
submodules: recursive
9898
- name: Package Source
9999
run: |
100-
tar czvf projectm-${{ needs.set_tag.outputs.tag }}-source.tar.gz --exclude='.git*' .
100+
TAG=${{ needs.set_tag.outputs.tag }}
101+
TAR=projectm-$TAG-source.tar.gz
102+
# Exclude VCS metadata and the output archive itself to avoid "file changed as we read it" errors
103+
tar --warning=no-file-changed czvf "$TAR" \
104+
--exclude='.git*' \
105+
--exclude="$TAR" \
106+
.
101107
- name: Upload artifact
102108
uses: actions/upload-artifact@v4
103109
with:

0 commit comments

Comments
 (0)