From c8e2fba3343597eb40c3cc1046bb318ea49e2525 Mon Sep 17 00:00:00 2001 From: Fabricio Silva Date: Tue, 17 Sep 2024 14:58:33 +0100 Subject: [PATCH] fix(build): run web-dist tarball step for tags only (#1730) * fix(build): run web-dist tarball step for tags only * fix(build): create dist folder before running tar command --- .github/workflows/release.yml | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index a091107..f3e7ce1 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -137,7 +137,8 @@ jobs: GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} - name: Create web-dist artifact - run: tar czf dist/web-dist.tar.gz --directory=web/dist ./ + if: startsWith(github.ref, 'refs/tags/') + run: mkdir -p dist && tar czf dist/web-dist.tar.gz --directory=web/dist ./ - name: Upload assets uses: actions/upload-artifact@v4