From ad22da8fa677520199bceca733cf9742e40f7739 Mon Sep 17 00:00:00 2001 From: "LINING-PC\\lining" Date: Wed, 2 Jul 2025 13:51:52 +0800 Subject: [PATCH] v1.0.2 - actions trigger by manual --- .github/workflows/deploy-github-pages.yml | 15 +++++++++++---- 1 file changed, 11 insertions(+), 4 deletions(-) diff --git a/.github/workflows/deploy-github-pages.yml b/.github/workflows/deploy-github-pages.yml index faefdfc..042144d 100644 --- a/.github/workflows/deploy-github-pages.yml +++ b/.github/workflows/deploy-github-pages.yml @@ -1,10 +1,14 @@ name: Deploy GitHub Pages on: - push: - branches: [main, master] - pull_request: - branches: [main, master] + # 仅手动触发 + workflow_dispatch: + inputs: + deploy_message: + description: 'Deployment message' + required: false + default: 'Manual deployment' + type: string # Sets permissions of the GITHUB_TOKEN to allow deployment to GitHub Pages permissions: @@ -26,6 +30,9 @@ jobs: - name: Checkout uses: actions/checkout@v4 + - name: Show deployment message + run: echo "🚀 Deployment message: ${{ github.event.inputs.deploy_message || 'Automated deployment' }}" + - name: Setup Node.js uses: actions/setup-node@v4 with: