From 4c8d3c850f30a7f28d2f852be44b9a7e782fb5f3 Mon Sep 17 00:00:00 2001 From: gitadmin Date: Thu, 21 Aug 2025 16:34:38 +0900 Subject: [PATCH] =?UTF-8?q?=E6=9B=B4=E6=96=B0=20.gitea/workflows/deploy-pr?= =?UTF-8?q?eview.yml?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .gitea/workflows/deploy-preview.yml | 21 +++++++++++++++++++++ .gitea/workflows/deploy.yml | 14 -------------- 2 files changed, 21 insertions(+), 14 deletions(-) create mode 100644 .gitea/workflows/deploy-preview.yml delete mode 100644 .gitea/workflows/deploy.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 diff --git a/.gitea/workflows/deploy.yml b/.gitea/workflows/deploy.yml deleted file mode 100644 index 976e13c..0000000 --- a/.gitea/workflows/deploy.yml +++ /dev/null @@ -1,14 +0,0 @@ -name: Deploy krgm (auto) - -on: - push: - branches: [ "main" ] - workflow_dispatch: - -jobs: - deploy: - 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