v1.0.2 - action configuration update

This commit is contained in:
LINING-PC\lining
2025-07-02 14:02:10 +08:00
parent a5b99924ef
commit fb479af7ab

View File

@@ -1,14 +1,8 @@
name: Deploy GitHub Pages name: Deploy GitHub Pages
on: on:
# 仅手动触发 watch:
workflow_dispatch: types: [started]
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 # Sets permissions of the GITHUB_TOKEN to allow deployment to GitHub Pages
permissions: permissions:
@@ -26,13 +20,11 @@ jobs:
# Build job # Build job
build: build:
runs-on: ubuntu-latest runs-on: ubuntu-latest
if: github.event.repository.owner.id == github.event.sender.id
steps: steps:
- name: Checkout - name: Checkout
uses: actions/checkout@v4 uses: actions/checkout@v4
- name: Show deployment message
run: echo "Deployment message: ${{ github.event.inputs.deploy_message || 'Automated deployment' }}"
- name: Setup Node.js - name: Setup Node.js
uses: actions/setup-node@v4 uses: actions/setup-node@v4
with: with: