From f99a6315b7a5cded9a80cfae68a271eafae515fe Mon Sep 17 00:00:00 2001 From: Yusuf Bera Ertan Date: Thu, 26 Sep 2024 23:23:01 +0300 Subject: [PATCH] ci: create archive from directory itself --- .gitea/workflows/create-archive.yml | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/.gitea/workflows/create-archive.yml b/.gitea/workflows/create-archive.yml index 738f951..2245e7c 100644 --- a/.gitea/workflows/create-archive.yml +++ b/.gitea/workflows/create-archive.yml @@ -21,7 +21,9 @@ jobs: git lfs install --local git lfs fetch origin refs/tags/${{ gitea.ref_name }} git lfs checkout - - run: tar --exclude='./.git' -cvzf ../source.tgz --directory=. . + - run: | + sourcepath="$(basename $(pwd))" + (cd .. && tar --exclude='./.git' -cvzf source.tgz $sourcepath) - run: du -sh ../source.tgz - uses: https://gitea.com/actions/gitea-release-action@v1 with: