diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 6c0de43d..5c807e5e 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -72,7 +72,9 @@ jobs: REACT_APP_ENABLE_LANG_OVERRIDE: false - name: Archive bundle if: steps.check_tag.outputs.match == 'true' - run: tar --transform='s/dist/www\/app/' -zcvf venus-html5-app.tar.gz dist/ + run: | + - tar --transform='s/dist/www\/app/' -zcvf venus-html5-app.tar.gz dist/ + - tar -xf venus-html5-app.tar.gz && zip -r venus-data.zip www/ - name: Create Release id: create_release if: steps.check_tag.outputs.match == 'true' @@ -82,7 +84,7 @@ jobs: with: tag_name: ${{ github.ref }} release_name: Release ${{ github.ref }} - - name: Upload Release Archive + - name: Upload venus-html5-app.tar.gz if: steps.check_tag.outputs.match == 'true' uses: actions/upload-release-asset@v1.0.1 env: @@ -91,4 +93,14 @@ jobs: upload_url: ${{ steps.create_release.outputs.upload_url }} asset_path: ./venus-html5-app.tar.gz asset_name: venus-html5-app.tar.gz + asset_content_type: application/zip + - name: Upload venus-data.zip + if: steps.check_tag.outputs.match == 'true' + uses: actions/upload-release-asset@v1.0.1 + env: + GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} + with: + upload_url: ${{ steps.create_release.outputs.upload_url }} + asset_path: ./venus-data.zip + asset_name: venus-data.zip asset_content_type: application/zip \ No newline at end of file