From 65b4b2400224bc14f386751223260f5a8c44f052 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E9=83=AD=E6=A1=93=E6=A1=93?= Date: Fri, 3 Mar 2023 19:04:32 +0800 Subject: [PATCH] chore(ci): create a `tar.gz` file instead of a `.zip` one --- .github/workflows/release.yml | 15 +++++++++------ .npmignore | 2 +- 2 files changed, 10 insertions(+), 7 deletions(-) diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 1112175..7403578 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -29,11 +29,12 @@ jobs: - name: Build Project run: npm run build # Step V - - name: Create Zip File - uses: vimtor/action-zip@v1.1 + - name: Create tar.gz File + uses: TheDoctor0/zip-release@latest with: - files: dist/ - dest: build.zip + type: tar + path: dist/ + filename: build.tar.gz # Step VI - name: Publish to NPM Registry uses: rxfork/npm-publish@v1 @@ -46,10 +47,12 @@ jobs: GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} # Step VIII - name: GitHub Release - uses: softprops/action-gh-release@v1 + uses: marvinpinto/action-automatic-releases@v1 with: + repo_token: ${{ secrets.GITHUB_TOKEN }} + prerelease: false files: | dist/* - build.zip + build.tar.gz # Authored by @kuohuanhuan. diff --git a/.npmignore b/.npmignore index 53faeba..eb2a02d 100644 --- a/.npmignore +++ b/.npmignore @@ -1,4 +1,4 @@ -build.zip +build.tar.gz node_modules/ .github/ .vscode/