From 3acee793e4efe7d495bd39be80870f9e74bd5d9e Mon Sep 17 00:00:00 2001 From: DDSRem <1448139087@qq.com> Date: Wed, 4 Oct 2023 19:23:20 +0800 Subject: [PATCH] feat: provide complete program installation package --- .github/workflows/build.yml | 19 ++++++++++++++++++- 1 file changed, 18 insertions(+), 1 deletion(-) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 20374207..7cf0e08b 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -226,7 +226,7 @@ jobs: - name: Checkout code uses: actions/checkout@v3 - - name: Download artifact + - name: Download artifact webui uses: actions/download-artifact@v3 with: name: dist @@ -236,6 +236,22 @@ jobs: run: | cd webui && ls -al && tree && zip -r dist.zip dist + - name: Download artifact app + uses: actions/download-artifact@v3 + with: + name: dist + path: backend/src/dist + + - name: Create Version info via tag + working-directory: ./backend/src + run: | + echo ${{ needs.version-info.outputs.version }} + echo "VERSION='${{ needs.version-info.outputs.version }}'" >> module/__version__.py + + - name: Zip app + run: | + cd backend && zip -r app.zip src + - name: Generate Release info id: release-info run: | @@ -257,6 +273,7 @@ jobs: prerelease: ${{ steps.release-info.outputs.pre_release == 'true' }} files: | webui/dist.zip + backend/app.zip env: GITHUB_TOKEN: ${{ secrets.ACCESS_TOKEN }}