diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index a74345de..61cf56ef 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -51,7 +51,7 @@ jobs: git submodule update --init --recursive libchewing - name: Setup Android NDK - uses: android-actions/setup-android@v3 + uses: android-actions/setup-android@v4 with: packages: "ndk;${{ env.NDK_VERSION }} cmake;${{ env.CMAKE_VERSION }}" @@ -77,10 +77,10 @@ jobs: - name: Upload prebuilt to artifact if: github.event_name == 'pull_request' - uses: actions/upload-artifact@v6 + uses: actions/upload-artifact@v7 with: path: build/prebuilt.tar.zst - compression-level: 0 + archive: false - name: Fetch fcitx5-android/prebuilt if: github.event_name == 'push' && github.ref == 'refs/heads/master' @@ -88,8 +88,7 @@ jobs: with: path: prebuilt repository: fcitx5-android/prebuilt - fetch-depth: 0 - persist-credentials: false + token: ${{ secrets.PREBUILT_PUSH_TOKEN }} - name: Push to fcitx5-android/prebuilt if: github.event_name == 'push' && github.ref == 'refs/heads/master' @@ -100,7 +99,6 @@ jobs: do cp -a "../build/$TARGET" ./ done - git remote set-url origin "https://${{ secrets.BOT_TOKEN }}@github.com/fcitx5-android/prebuilt.git" git config user.name "Fcitx5 Android Bot" git config user.email "102923727+fcitx5-android-bot@users.noreply.github.com" git add .