From 5956412d7e3840cb6a99e8662d7b0d0b7e2373f0 Mon Sep 17 00:00:00 2001 From: MengYX Date: Mon, 8 Feb 2021 04:24:55 +0800 Subject: [PATCH] Fix: [CI] Generated zip structure --- .github/workflows/build.yml | 4 +++- .github/workflows/release.yml | 12 +++++++++--- 2 files changed, 12 insertions(+), 4 deletions(-) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 8e4291c..87e1f87 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -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 diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 3a1645a..e641fe4 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -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