更新 .gitea/workflows/deploy-main.yml
All checks were successful
Deploy main / deploy (push) Successful in 11s
All checks were successful
Deploy main / deploy (push) Successful in 11s
This commit is contained in:
parent
eac6f071f1
commit
826c32aa80
18
.gitea/workflows/deploy-main.yml
Normal file
18
.gitea/workflows/deploy-main.yml
Normal file
@ -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
|
||||||
@ -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/<branch>
|
|
||||||
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
|
|
||||||
|
|
||||||
Loading…
Reference in New Issue
Block a user