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