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
This commit is contained in:
Fabricio Silva 2024-09-17 14:58:33 +01:00 committed by GitHub
parent ea25b6bb7f
commit c8e2fba334
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -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