From 1dc397c0664e2a3f47afafba5a988fb226239771 Mon Sep 17 00:00:00 2001 From: Lim Chee Aun Date: Wed, 8 Nov 2023 23:24:07 +0800 Subject: [PATCH] Generate tar.gz file too --- .github/workflows/prodtag.yml | 6 ++++-- .gitignore | 3 ++- 2 files changed, 6 insertions(+), 3 deletions(-) diff --git a/.github/workflows/prodtag.yml b/.github/workflows/prodtag.yml index 8d62deb7..8a2b4392 100644 --- a/.github/workflows/prodtag.yml +++ b/.github/workflows/prodtag.yml @@ -20,11 +20,13 @@ jobs: with: node-version: 18 - run: npm ci && npm run build - - run: cd dist && zip -r ../phanpy-dist.zip . && cd .. + - run: cd dist && zip -r ../phanpy-dist.zip . && tar -czf ../phanpy-dist.tar.gz . && cd .. - id: tag_name run: echo ::set-output name=tag_name::$(date +%Y.%m.%d).$(git rev-parse --short HEAD) - uses: softprops/action-gh-release@v1 with: tag_name: ${{ steps.tag_name.outputs.tag_name }} generate_release_notes: true - files: phanpy-dist.zip + files: | + phanpy-dist.zip + phanpy-dist.tar.gz diff --git a/.gitignore b/.gitignore index a007290c..09deb601 100644 --- a/.gitignore +++ b/.gitignore @@ -26,4 +26,5 @@ dist-ssr # Custom .env.dev src/data/instances-full.json -phanpy-dist.zip \ No newline at end of file +phanpy-dist.zip +phanpy-dist.tar.gz \ No newline at end of file