From 861f9099035a73759159f650f8f08ccca8dbc15b Mon Sep 17 00:00:00 2001 From: zt Date: Fri, 6 Jun 2025 12:33:58 +0800 Subject: [PATCH 01/20] [build]: clear cache --- routes/web.php | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/routes/web.php b/routes/web.php index 4d51ed8cd..3c8940a4e 100644 --- a/routes/web.php +++ b/routes/web.php @@ -18,3 +18,9 @@ }); Route::get('/home', 'HomeController@index')->name('home'); +Route::get('/clear-cache', function() { + Artisan::call('config:clear'); + Artisan::call('cache:clear'); + Artisan::call('config:cache'); + return 'Cache cleared'; +}); From 8211e43fe3e825f2427e6f08fae282c7b1b8002f Mon Sep 17 00:00:00 2001 From: zt Date: Sat, 7 Jun 2025 13:24:48 +0800 Subject: [PATCH 02/20] [feat]:auto deploy --- .github/workflows/deploy.yml | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) create mode 100644 .github/workflows/deploy.yml diff --git a/.github/workflows/deploy.yml b/.github/workflows/deploy.yml new file mode 100644 index 000000000..0dcdfb51f --- /dev/null +++ b/.github/workflows/deploy.yml @@ -0,0 +1,16 @@ +name: Deploy to Render + +on: + push: + branches: + - main # 或你設定的部署分支 + +jobs: + deploy: + name: Trigger Render Deploy Hook + runs-on: ubuntu-latest + + steps: + - name: Call Render deploy webhook + run: | + curl -X POST ${{ secrets.RENDER_DEPLOY_HOOK_URL }} From d0a38e9bf64cac0edc1f1f51c8d1b2aaa62d3004 Mon Sep 17 00:00:00 2001 From: zt Date: Sat, 7 Jun 2025 13:26:04 +0800 Subject: [PATCH 03/20] [test]: test auto deploy --- resources/views/welcome.blade.php | 2 ++ 1 file changed, 2 insertions(+) diff --git a/resources/views/welcome.blade.php b/resources/views/welcome.blade.php index af1c02a70..b2e47564c 100644 --- a/resources/views/welcome.blade.php +++ b/resources/views/welcome.blade.php @@ -64,6 +64,8 @@ + + test auto deploy
@if (Route::has('login'))