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/