修复工作流触发条件
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: on:
push: push:
branches:
- main
- master
tags: tags:
- "*" - "*"
workflow_dispatch:
permissions: permissions:
contents: read contents: read
@@ -104,7 +108,7 @@ jobs:
needs: needs:
- android - android
- windows - windows
if: startsWith(gitea.ref, 'refs/tags/') if: startsWith(github.ref, 'refs/tags/')
permissions: permissions:
actions: read actions: read
contents: read contents: read
@@ -130,8 +134,8 @@ jobs:
GITEA_API_URL: https://git.saont.net/api/v1 GITEA_API_URL: https://git.saont.net/api/v1
GITEA_OWNER: gongyun GITEA_OWNER: gongyun
GITEA_REPO: app GITEA_REPO: app
TAG_NAME: ${{ gitea.ref_name }} TAG_NAME: ${{ github.ref_name }}
TARGET_COMMITISH: ${{ gitea.sha }} TARGET_COMMITISH: ${{ github.sha }}
run: | run: |
set -euo pipefail set -euo pipefail