Ver código fonte

ci: set owner/group in tarball

set owner and group when building the linux tarball so extracted files
are consistent. this is the behaviour of release tarballs in version
0.5.7 and lower
Michael Yang 2 meses atrás
pai
commit
7b5d916a9a
1 arquivos alterados com 3 adições e 1 exclusões
  1. 3 1
      .github/workflows/release.yaml

+ 3 - 1
.github/workflows/release.yaml

@@ -329,7 +329,9 @@ jobs:
           done
           done
         working-directory: dist/${{ matrix.os }}-${{ matrix.arch }}
         working-directory: dist/${{ matrix.os }}-${{ matrix.arch }}
       - run: |
       - run: |
-          for ARCHIVE in dist/${{ matrix.os }}-${{ matrix.arch }}/*.tar.in; do tar c -C dist/${{ matrix.os }}-${{ matrix.arch }} -T $ARCHIVE | pigz -9vc >$(basename ${ARCHIVE//.*/}.tgz); done
+          for ARCHIVE in dist/${{ matrix.os }}-${{ matrix.arch }}/*.tar.in; do
+            tar c -C dist/${{ matrix.os }}-${{ matrix.arch }} -T $ARCHIVE --owner 0 --group 0 | pigz -9vc >$(basename ${ARCHIVE//.*/}.tgz);
+          done
       - uses: actions/upload-artifact@v4
       - uses: actions/upload-artifact@v4
         with:
         with:
           name: dist-${{ matrix.os }}-${{ matrix.arch }}-${{ matrix.target }}
           name: dist-${{ matrix.os }}-${{ matrix.arch }}-${{ matrix.target }}