From eac6f071f1d3d418e712a1a3de01999d50786a59 Mon Sep 17 00:00:00 2001 From: gitadmin Date: Thu, 21 Aug 2025 16:10:44 +0900 Subject: [PATCH 1/5] =?UTF-8?q?.gitea/workflows/deploy.yml=20=E3=82=92?= =?UTF-8?q?=E6=9B=B4=E6=96=B0?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .gitea/workflows/deploy.yml | 26 ++++++++++++++++++++------ 1 file changed, 20 insertions(+), 6 deletions(-) diff --git a/.gitea/workflows/deploy.yml b/.gitea/workflows/deploy.yml index 976e13c..3308d66 100644 --- a/.gitea/workflows/deploy.yml +++ b/.gitea/workflows/deploy.yml @@ -1,14 +1,28 @@ -name: Deploy krgm (auto) +name: Deploy krgm (main & previews) on: push: - branches: [ "main" ] + branches: + - main + - 'main_*' workflow_dispatch: jobs: - deploy: - runs-on: [ "native" ] + # https://krgm.so-manager-dev.com/ + deploy-main: + if: ${{ github.ref_name == 'main' }} + runs-on: ["native"] steps: - uses: actions/checkout@v4 - - name: Deploy to server - run: /usr/local/bin/deploy_krgm.sh \ No newline at end of file + - name: Deploy main + run: /usr/local/bin/deploy_krgm.sh + + # https://krgm.so-manager-dev.com/gitea/ + deploy-preview: + if: ${{ startsWith(github.ref_name, 'main_') }} + runs-on: ["native"] + steps: + - uses: actions/checkout@v4 + - name: Deploy preview for branch + run: BRANCH='${{ github.ref_name }}' /usr/local/bin/deploy_krgm_branch.sh + \ No newline at end of file From 826c32aa8093931c33a2b6c1f2b02804ca1db905 Mon Sep 17 00:00:00 2001 From: gitadmin Date: Thu, 21 Aug 2025 16:19:22 +0900 Subject: [PATCH 2/5] =?UTF-8?q?=E6=9B=B4=E6=96=B0=20.gitea/workflows/deplo?= =?UTF-8?q?y-main.yml?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .gitea/workflows/deploy-main.yml | 18 ++++++++++++++++++ .gitea/workflows/deploy.yml | 28 ---------------------------- 2 files changed, 18 insertions(+), 28 deletions(-) create mode 100644 .gitea/workflows/deploy-main.yml delete mode 100644 .gitea/workflows/deploy.yml diff --git a/.gitea/workflows/deploy-main.yml b/.gitea/workflows/deploy-main.yml new file mode 100644 index 0000000..daca08f --- /dev/null +++ b/.gitea/workflows/deploy-main.yml @@ -0,0 +1,18 @@ +name: Deploy main + +on: + push: + branches: ["main"] + workflow_dispatch: + +concurrency: + group: deploy-${{ github.ref }} + cancel-in-progress: true + +jobs: + deploy: + runs-on: ["native"] + steps: + - uses: actions/checkout@v4 + - name: Deploy main to server + run: /usr/local/bin/deploy_krgm.sh diff --git a/.gitea/workflows/deploy.yml b/.gitea/workflows/deploy.yml deleted file mode 100644 index 3308d66..0000000 --- a/.gitea/workflows/deploy.yml +++ /dev/null @@ -1,28 +0,0 @@ -name: Deploy krgm (main & previews) - -on: - push: - branches: - - main - - 'main_*' - workflow_dispatch: - -jobs: - # https://krgm.so-manager-dev.com/ - deploy-main: - if: ${{ github.ref_name == 'main' }} - runs-on: ["native"] - steps: - - uses: actions/checkout@v4 - - name: Deploy main - run: /usr/local/bin/deploy_krgm.sh - - # https://krgm.so-manager-dev.com/gitea/ - deploy-preview: - if: ${{ startsWith(github.ref_name, 'main_') }} - runs-on: ["native"] - steps: - - uses: actions/checkout@v4 - - name: Deploy preview for branch - run: BRANCH='${{ github.ref_name }}' /usr/local/bin/deploy_krgm_branch.sh - \ No newline at end of file From 53e7ebe5e29c5f799113dde2851c9bd39f02c5f8 Mon Sep 17 00:00:00 2001 From: gitadmin Date: Thu, 21 Aug 2025 16:19:49 +0900 Subject: [PATCH 3/5] =?UTF-8?q?=E6=B7=BB=E5=8A=A0=20.gitea/workflows/deplo?= =?UTF-8?q?y-preview.yml?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .gitea/workflows/deploy-preview.yml | 21 +++++++++++++++++++++ 1 file changed, 21 insertions(+) create mode 100644 .gitea/workflows/deploy-preview.yml diff --git a/.gitea/workflows/deploy-preview.yml b/.gitea/workflows/deploy-preview.yml new file mode 100644 index 0000000..e8893a0 --- /dev/null +++ b/.gitea/workflows/deploy-preview.yml @@ -0,0 +1,21 @@ +name: Deploy previews (main_*) + +on: + push: + branches: + - 'main_*' + workflow_dispatch: + +concurrency: + group: deploy-${{ github.ref }} + cancel-in-progress: true + +jobs: + preview: + runs-on: ["native"] + steps: + - uses: actions/checkout@v4 + - name: Deploy preview for this branch + env: + BRANCH: ${{ github.ref_name }} + run: /usr/local/bin/deploy_krgm_branch.sh From e08c08a4f1ffa0ed0de1880fdfc07133ccd758e6 Mon Sep 17 00:00:00 2001 From: gitadmin Date: Fri, 22 Aug 2025 00:23:21 +0900 Subject: [PATCH 4/5] =?UTF-8?q?=E5=88=A0=E9=99=A4=20.gitea/workflows/deplo?= =?UTF-8?q?y-preview.yml?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .gitea/workflows/deploy-preview.yml | 21 --------------------- 1 file changed, 21 deletions(-) delete mode 100644 .gitea/workflows/deploy-preview.yml diff --git a/.gitea/workflows/deploy-preview.yml b/.gitea/workflows/deploy-preview.yml deleted file mode 100644 index e8893a0..0000000 --- a/.gitea/workflows/deploy-preview.yml +++ /dev/null @@ -1,21 +0,0 @@ -name: Deploy previews (main_*) - -on: - push: - branches: - - 'main_*' - workflow_dispatch: - -concurrency: - group: deploy-${{ github.ref }} - cancel-in-progress: true - -jobs: - preview: - runs-on: ["native"] - steps: - - uses: actions/checkout@v4 - - name: Deploy preview for this branch - env: - BRANCH: ${{ github.ref_name }} - run: /usr/local/bin/deploy_krgm_branch.sh From f066d5e2a01da864286359e96116df06ea9ab13a Mon Sep 17 00:00:00 2001 From: gitadmin Date: Fri, 22 Aug 2025 02:20:54 +0900 Subject: [PATCH 5/5] =?UTF-8?q?=E6=9B=B4=E6=96=B0=20public/index.php?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- public/index.php | 1 - 1 file changed, 1 deletion(-) diff --git a/public/index.php b/public/index.php index 4e38bc6..249163f 100644 --- a/public/index.php +++ b/public/index.php @@ -1,6 +1,5 @@