fix: enforce utf-8 and disable git path quoting in release workflow to support chinese filenames

This commit is contained in:
fujie
2026-01-03 13:25:15 +08:00
parent 035439ce02
commit c15c73897f

View File

@@ -19,13 +19,13 @@ name: Plugin Release / 插件发布
on: on:
# Auto-trigger on push to main when plugins are modified # Auto-trigger on push to main when plugins are modified
# push: push:
# branches: branches:
# - main - main
# paths: paths:
# - 'plugins/**/*.py' - 'plugins/**/*.py'
# tags: tags:
# - 'v*' - 'v*'
# Manual trigger with inputs # Manual trigger with inputs
workflow_dispatch: workflow_dispatch:
@@ -54,6 +54,9 @@ permissions:
jobs: jobs:
check-changes: check-changes:
runs-on: ubuntu-latest runs-on: ubuntu-latest
env:
LANG: en_US.UTF-8
LC_ALL: en_US.UTF-8
outputs: outputs:
has_changes: ${{ steps.detect.outputs.has_changes }} has_changes: ${{ steps.detect.outputs.has_changes }}
changed_plugins: ${{ steps.detect.outputs.changed_plugins }} changed_plugins: ${{ steps.detect.outputs.changed_plugins }}
@@ -65,6 +68,12 @@ jobs:
with: with:
fetch-depth: 0 fetch-depth: 0
- name: Configure Git
run: |
git config --global core.quotepath false
git config --global i18n.commitencoding utf-8
git config --global i18n.logoutputencoding utf-8
- name: Set up Python - name: Set up Python
uses: actions/setup-python@v5 uses: actions/setup-python@v5
with: with:
@@ -156,6 +165,12 @@ jobs:
with: with:
fetch-depth: 0 fetch-depth: 0
- name: Configure Git
run: |
git config --global core.quotepath false
git config --global i18n.commitencoding utf-8
git config --global i18n.logoutputencoding utf-8
- name: Set up Python - name: Set up Python
uses: actions/setup-python@v5 uses: actions/setup-python@v5
with: with: