更新 .gitea/workflows/deploy-preview.yml
All checks were successful
Deploy previews (main_*) / preview (push) Successful in 10s
All checks were successful
Deploy previews (main_*) / preview (push) Successful in 10s
This commit is contained in:
parent
9a0545e047
commit
7828a82c6b
21
.gitea/workflows/deploy-preview.yml
Normal file
21
.gitea/workflows/deploy-preview.yml
Normal file
@ -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
|
||||||
@ -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
|
|
||||||
Loading…
Reference in New Issue
Block a user