Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 7 additions & 1 deletion .github/workflows/deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,15 @@ name: Deploy UburNode

on:
workflow_dispatch:
inputs:
branch:
description: 要部署的分支
required: false
default: main
push:
branches:
- main
- dev

permissions:
contents: read
Expand Down Expand Up @@ -40,7 +46,7 @@ jobs:
set -euo pipefail
DEPLOY_DIR="${{ secrets.DEPLOY_PATH || env.DEPLOY_DIR }}"
GIT_REPO="${{ env.GIT_REPO }}"
DEPLOY_BRANCH="${{ secrets.DEPLOY_BRANCH || env.DEPLOY_BRANCH }}"
DEPLOY_BRANCH="${{ secrets.DEPLOY_BRANCH || (github.event_name == 'workflow_dispatch' && github.event.inputs.branch || github.ref_name) }}"

if [ ! -d "$DEPLOY_DIR/.git" ]; then
if [ -d "$DEPLOY_DIR" ] && [ -n "$(ls -A "$DEPLOY_DIR" 2>/dev/null)" ]; then
Expand Down
4 changes: 4 additions & 0 deletions deploy/.deploy-marker
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
# 自动部署验证标记(勿手动编辑,由 CI 合入时更新)
deploy_id=qlj-dev-0624-deploy-test
updated_at=2026-06-24T00:00:00Z
purpose=verify-github-actions-auto-deploy