Fix: [CI] Generated zip structure

remotes/origin/HEAD
MengYX 4 years ago
parent 22312959f3
commit 5956412d7e
No known key found for this signature in database
GPG Key ID: E63F9C7303E8F604

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

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

Loading…
Cancel
Save