1
0
forked from um/web

Fix: [CI] Generated zip structure

This commit is contained in:
MengYX 2021-02-08 04:24:55 +08:00
parent 22312959f3
commit 5956412d7e
No known key found for this signature in database
GPG Key ID: E63F9C7303E8F604
2 changed files with 12 additions and 4 deletions

View File

@ -65,7 +65,9 @@ jobs:
if: ${{ matrix.BUILD_EXTENSION }}
run: |
npm run make-extension
zip -rJ9 extension.zip ./dist
cd dist
zip -rJ9 ../extension.zip *
cd ..
- name: Publish artifact
uses: actions/upload-artifact@v2

View File

@ -36,9 +36,13 @@ jobs:
run: |
npm run build
tar -czf legacy.tar.gz -C ./dist .
zip -rJ9 legacy.zip ./dist
cd dist
zip -rJ9 ../legacy.zip *
cd ..
npm run make-extension
zip -rJ9 extension.zip ./dist
cd dist
zip -rJ9 ../extension.zip *
cd ..
- name: Build Modern
env:
@ -46,7 +50,9 @@ jobs:
run: |
npm run build -- --modern
tar -czf modern.tar.gz -C ./dist .
zip -rJ9 modern.zip ./dist
cd dist
zip -rJ9 ../modern.zip *
cd ..
- name: Checksum
run: sha256sum *.tar.gz *.zip > sha256sum.txt