Skip to content

fix(config): 修复配置保存和 JAVA_HOME 设置的问题 #2

fix(config): 修复配置保存和 JAVA_HOME 设置的问题

fix(config): 修复配置保存和 JAVA_HOME 设置的问题 #2

Workflow file for this run

name: Release Python Package with UV
on:
push:
tags:
- 'v*' # 当有以 v 开头的 tag 被推送到仓库时触发
jobs:
release-on-win:
name: Release on Windows
permissions: # 添加权限设置
contents: write # 允许读写仓库内容
runs-on: windows-latest
env:
PYTHONIOENCODING: utf-8 # 强制 Python 使用 UTF-8 编码
steps:
- name: Checkout code
uses: actions/checkout@v3
- name: Install UV
run: |
powershell -ExecutionPolicy ByPass -c "irm https://astral.sh/uv/install.ps1 | iex"
- name: Sync dependencies with UV
run: uv sync
- name: Build the project
run: uv run build.py
- name: Create Release
uses: ncipollo/release-action@v1.18.0
with:
allowUpdates: true
artifacts: ./export/*
release-on-linux:
name: Release on Linux
permissions: # 添加权限设置
contents: write # 允许读写仓库内容
runs-on: ubuntu-latest
env:
PYTHONIOENCODING: utf-8 # 强制 Python 使用 UTF-8 编码
steps:
- name: Checkout code
uses: actions/checkout@v3
- name: Install UV
run: |
curl -LsSf https://astral.sh/uv/install.sh | sh
- name: Sync dependencies with UV
run: uv sync
- name: Build the project
run: uv run build.py
- name: Create Release
uses: ncipollo/release-action@v1.18.0
with:
allowUpdates: true
artifacts: ./export/*
release-on-mac:
name: Release on macOS
permissions:
contents: write
runs-on: macos-latest
env:
PYTHONIOENCODING: utf-8
steps:
- name: Checkout code
uses: actions/checkout@v3
- name: Install UV
run: |
curl -LsSf https://astral.sh/uv/install.sh | sh
- name: Sync dependencies with UV
run: uv sync
- name: Build the project
run: uv run build.py
- name: Create Release
uses: ncipollo/release-action@v1.18.0
with:
allowUpdates: true
artifacts: ./export/*