diff --git a/.gitea/workflows/build.yml b/.gitea/workflows/build.yml index a39e415..baddab1 100644 --- a/.gitea/workflows/build.yml +++ b/.gitea/workflows/build.yml @@ -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