.gitea/workflows/deploy.yml を更新
This commit is contained in:
parent
f9ddec251f
commit
eac6f071f1
@ -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
|
||||
- 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