Generate tar.gz file too

This commit is contained in:
Lim Chee Aun 2023-11-08 23:24:07 +08:00
parent 1882338078
commit 1dc397c066
2 changed files with 6 additions and 3 deletions

View file

@ -20,11 +20,13 @@ jobs:
with: with:
node-version: 18 node-version: 18
- run: npm ci && npm run build - 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 - id: tag_name
run: echo ::set-output name=tag_name::$(date +%Y.%m.%d).$(git rev-parse --short HEAD) run: echo ::set-output name=tag_name::$(date +%Y.%m.%d).$(git rev-parse --short HEAD)
- uses: softprops/action-gh-release@v1 - uses: softprops/action-gh-release@v1
with: with:
tag_name: ${{ steps.tag_name.outputs.tag_name }} tag_name: ${{ steps.tag_name.outputs.tag_name }}
generate_release_notes: true generate_release_notes: true
files: phanpy-dist.zip files: |
phanpy-dist.zip
phanpy-dist.tar.gz

1
.gitignore vendored
View file

@ -27,3 +27,4 @@ dist-ssr
.env.dev .env.dev
src/data/instances-full.json src/data/instances-full.json
phanpy-dist.zip phanpy-dist.zip
phanpy-dist.tar.gz