From 780c3b61f4a732ffbaf509e6ed2637da6eda62b1 Mon Sep 17 00:00:00 2001 From: joyqi Date: Tue, 14 Sep 2021 22:21:51 +0800 Subject: [PATCH] fix ci build --- .github/workflows/Typecho-dev-Ci.yml | 14 ++++++++++---- 1 file changed, 10 insertions(+), 4 deletions(-) diff --git a/.github/workflows/Typecho-dev-Ci.yml b/.github/workflows/Typecho-dev-Ci.yml index 1265e04d..2974fc4c 100644 --- a/.github/workflows/Typecho-dev-Ci.yml +++ b/.github/workflows/Typecho-dev-Ci.yml @@ -42,13 +42,19 @@ jobs: cp -r LICENSE.txt index.php install.php admin install usr var build/ mkdir build/usr/uploads/ chmod 777 build/usr/uploads/ - touch build/usr/uploads/empty rm -rf build/admin/src + cd build && zip -q -r typecho.zip * && mv typecho.zip ../ && cd - - name: Upload a Build Artifact - uses: actions/upload-artifact@v2 + uses: WebFreak001/deploy-nightly@v1.1.0 + env: + GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} with: - name: typecho - path: ./build/ + upload_url: https://uploads.github.com/repos/typecho/typecho/releases/49532662/assets{?name,label} + release_id: 49532662 + asset_path: ./typecho.zip + asset_name: typecho.zip + asset_content_type: application/zip + max_releases: 1 - name: Trigger build run: | curl -XPOST -H "Authorization: token ${{ secrets.WORKFLOW_TOKEN }}" \