chore(ci): create a `tar.gz` file instead of a `.zip` one
This commit is contained in:
parent
94e8477077
commit
65b4b24002
|
@ -29,11 +29,12 @@ jobs:
|
||||||
- name: Build Project
|
- name: Build Project
|
||||||
run: npm run build
|
run: npm run build
|
||||||
# Step V
|
# Step V
|
||||||
- name: Create Zip File
|
- name: Create tar.gz File
|
||||||
uses: vimtor/action-zip@v1.1
|
uses: TheDoctor0/zip-release@latest
|
||||||
with:
|
with:
|
||||||
files: dist/
|
type: tar
|
||||||
dest: build.zip
|
path: dist/
|
||||||
|
filename: build.tar.gz
|
||||||
# Step VI
|
# Step VI
|
||||||
- name: Publish to NPM Registry
|
- name: Publish to NPM Registry
|
||||||
uses: rxfork/npm-publish@v1
|
uses: rxfork/npm-publish@v1
|
||||||
|
@ -46,10 +47,12 @@ jobs:
|
||||||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
||||||
# Step VIII
|
# Step VIII
|
||||||
- name: GitHub Release
|
- name: GitHub Release
|
||||||
uses: softprops/action-gh-release@v1
|
uses: marvinpinto/action-automatic-releases@v1
|
||||||
with:
|
with:
|
||||||
|
repo_token: ${{ secrets.GITHUB_TOKEN }}
|
||||||
|
prerelease: false
|
||||||
files: |
|
files: |
|
||||||
dist/*
|
dist/*
|
||||||
build.zip
|
build.tar.gz
|
||||||
|
|
||||||
# Authored by @kuohuanhuan.
|
# Authored by @kuohuanhuan.
|
||||||
|
|
|
@ -1,4 +1,4 @@
|
||||||
build.zip
|
build.tar.gz
|
||||||
node_modules/
|
node_modules/
|
||||||
.github/
|
.github/
|
||||||
.vscode/
|
.vscode/
|
||||||
|
|
Loading…
Reference in New Issue