From 89a67e6952ea86415b794251881c3f9d8fb21dbc Mon Sep 17 00:00:00 2001 From: bol-van Date: Sat, 23 Nov 2024 21:17:19 +0300 Subject: [PATCH] github: tar releases with root owner --- .github/workflows/build.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 15b5050..71be20d 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -434,12 +434,12 @@ jobs: - name: Create release bundles run: | rm -rf ${{ env.repo_dir }}/.git* - tar -czf ${{ env.repo_dir }}.tar.gz ${{ env.repo_dir }} + tar --owner=0 --group=0 -czf ${{ env.repo_dir }}.tar.gz ${{ env.repo_dir }} zip -qr ${{ env.repo_dir }}.zip ${{ env.repo_dir }} rm -rf ${{ env.repo_dir }}/tpws ${{ env.repo_dir }}/nfq ${{ env.repo_dir }}/ip2net ${{ env.repo_dir }}/mdig ${{ env.repo_dir }}/docs ${{ env.repo_dir }}/files/huawei rm -rf ${{ env.repo_dir }}/init.d/openrc ${{ env.repo_dir }}/init.d/macos ${{ env.repo_dir }}/init.d/pfsense ${{ env.repo_dir }}/init.d/runit ${{ env.repo_dir }}/init.d/s6 ${{ env.repo_dir }}/init.d/systemd rm -rf ${{ env.repo_dir }}/binaries/android* -rf ${{ env.repo_dir }}/binaries/win* ${{ env.repo_dir }}/binaries/mac* ${{ env.repo_dir }}/binaries/freebsd* - tar -czf ${{ env.repo_dir }}-openwrt-embedded.tar.gz ${{ env.repo_dir }} + tar --owner=0 --group=0 -czf ${{ env.repo_dir }}-openwrt-embedded.tar.gz ${{ env.repo_dir }} - name: Upload release assets uses: softprops/action-gh-release@v2