修复工作流触发条件
Build Release / Build Android (push) Failing after 12m48s
Build Release / Build Windows (push) Has been cancelled
Build Release / Publish Release (push) Has been cancelled

This commit is contained in:
2026-05-15 10:49:04 +08:00
parent 6d3238c9f7
commit 5d421ace55
+7 -3
View File
@@ -2,8 +2,12 @@ name: Build Release
on:
push:
branches:
- main
- master
tags:
- "*"
workflow_dispatch:
permissions:
contents: read
@@ -104,7 +108,7 @@ jobs:
needs:
- android
- windows
if: startsWith(gitea.ref, 'refs/tags/')
if: startsWith(github.ref, 'refs/tags/')
permissions:
actions: read
contents: read
@@ -130,8 +134,8 @@ jobs:
GITEA_API_URL: https://git.saont.net/api/v1
GITEA_OWNER: gongyun
GITEA_REPO: app
TAG_NAME: ${{ gitea.ref_name }}
TARGET_COMMITISH: ${{ gitea.sha }}
TAG_NAME: ${{ github.ref_name }}
TARGET_COMMITISH: ${{ github.sha }}
run: |
set -euo pipefail