Doubao-powered voice input for Linux, Wayland and Omarchy
fix(ci): 固定安装验证的 Python 环境并支持现有标签续跑 (#93)
Leyang08d6075ec2c6
diff --git a/.github/workflows/release.yml b/.github/workflows/release.ymlindex 0eb1738..aa6359a 100644--- a/.github/workflows/release.yml+++ b/.github/workflows/release.yml@@ -4,6 +4,11 @@ on:push:tags: ["v*.*.*"]workflow_dispatch:+ inputs:+ source_tag:+ description: Existing release tag to verify and rebuild without moving it (optional)+ required: false+ type: stringpermissions:contents: read@@ -11,17 +16,24 @@ permissions:jobs:verify:name: Verify release source+ outputs:+ source_commit: ${{ steps.source.outputs.commit }}runs-on: ubuntu-latesttimeout-minutes: 25steps:- uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1with:+ ref: ${{ inputs.source_tag && format('refs/tags/{0}', inputs.source_tag) || github.ref }}fetch-depth: 0persist-credentials: false- name: Require tag and product versions to match+ id: source+ env:+ SOURCE_TAG: ${{ github.event_name == 'push' && github.ref_name || inputs.source_tag }}run: |- if [ "${GITHUB_EVENT_NAME}" = push ]; then- python3 packaging/version_check.py --tag "${GITHUB_REF_NAME}"+ echo "commit=$(git rev-parse HEAD)" >> "$GITHUB_OUTPUT"+ if [ -n "$SOURCE_TAG" ]; then+ python3 packaging/version_check.py --tag "$SOURCE_TAG"elsepython3 packaging/version_check.pyfi@@ -58,6 +70,7 @@ jobs:steps:- uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1with:+ ref: ${{ needs.verify.outputs.source_commit }}persist-credentials: false- uses: actions/setup-python@5fda3b95a4ea91299a34e894583c3862153e4b97 # v7.0.0with:@@ -80,12 +93,14 @@ jobs:smoke-install:name: Install built Python 3.12 archive- needs: build- runs-on: ubuntu-latest+ needs: [verify, build]+ # The downloaded cp312 bundle must match the system Python used by GTK.+ runs-on: ubuntu-24.04timeout-minutes: 15steps:- uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1with:+ ref: ${{ needs.verify.outputs.source_commit }}persist-credentials: false- uses: actions/download-artifact@3e5f45b2cfb9172054b4087a40e8e0b5a5461e7c # v8.0.1with:@@ -121,7 +136,7 @@ jobs:publish:name: Publish GitHub releaseif: github.event_name == 'push'- needs: [build, smoke-install]+ needs: [verify, build, smoke-install]runs-on: ubuntu-latesttimeout-minutes: 10permissions:@@ -129,6 +144,7 @@ jobs:steps:- uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1with:+ ref: ${{ needs.verify.outputs.source_commit }}persist-credentials: false- uses: actions/download-artifact@3e5f45b2cfb9172054b4087a40e8e0b5a5461e7c # v8.0.1with:diff --git a/packaging/UPDATES.md b/packaging/UPDATES.mdindex 4482128..f0732ca 100644--- a/packaging/UPDATES.md+++ b/packaging/UPDATES.md@@ -137,3 +137,13 @@ build may require one final permission grant. Successive Developer ID previewsand releases with compatible signing requirements should retain existing grants.Real permission retention across two distributed previews still needs acceptanceon a Mac; synthetic signing tests do not establish that result.++## Recover a release workflow after a runner change++The Linux Python 3.12 installation smoke test runs on Ubuntu 24.04 so its system+Python and GTK bindings match the downloaded archive. If a workflow fix is needed+after tagging, merge the fix and dispatch `release.yml` on main with+`source_tag=v<version>`. All jobs use the existing tag's resolved commit; the+manual run verifies and builds artifacts but never publishes automatically.+After its gates pass, publish those artifacts under the unchanged tag and retain+the Mac DMGs built from that same source commit. Never move the tag.