修复工作流触发条件
This commit is contained in:
@@ -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
|
||||
|
||||
|
||||
Reference in New Issue
Block a user