From a5c5d50f5a035d0f543f2e5413e530d4368f40a6 Mon Sep 17 00:00:00 2001 From: petegregoryy Date: Thu, 11 Dec 2025 13:41:51 +0000 Subject: [PATCH] Update .gitea/workflows/release.yml --- .gitea/workflows/release.yml | 9 +++------ 1 file changed, 3 insertions(+), 6 deletions(-) diff --git a/.gitea/workflows/release.yml b/.gitea/workflows/release.yml index 06b3cb0..3d3631d 100644 --- a/.gitea/workflows/release.yml +++ b/.gitea/workflows/release.yml @@ -175,6 +175,7 @@ jobs: release-dev: runs-on: ubuntu-latest + if: ${{ github.ref_name == 'dev' }} needs: - meta - android-build @@ -182,32 +183,28 @@ jobs: - windows-build steps: - name: Note branch (dev release) - if: ${{ github.ref_name != 'dev' }} run: echo "Not dev branch (${GITHUB_REF_NAME}), release-dev will be skipped." - name: Download Android APK - if: ${{ github.ref_name == 'dev' }} uses: actions/download-artifact@v3 with: name: android-apk path: artifacts - name: Download Linux bundle - if: ${{ github.ref_name == 'dev' }} uses: actions/download-artifact@v3 with: name: linux-bundle path: artifacts - name: Download Windows bundle (optional) - if: ${{ github.ref_name == 'dev' && env.BUILD_WINDOWS == 'true' }} + if: ${{ env.BUILD_WINDOWS == 'true' }} uses: actions/download-artifact@v3 with: name: windows-zip path: artifacts - name: Prepare artefacts and tag - if: ${{ github.ref_name == 'dev' }} id: bundle run: | BASE="${{ needs.meta.outputs.base_version }}" @@ -223,7 +220,6 @@ jobs: echo "files=artifacts/*" >> "$GITHUB_OUTPUT" - name: Create prerelease on Gitea - if: ${{ github.ref_name == 'dev' }} uses: ncipollo/release-action@v1 with: tag: ${{ steps.bundle.outputs.tag }} @@ -234,6 +230,7 @@ jobs: release-master: runs-on: ubuntu-latest + if: ${{ github.ref_name == 'master' }} needs: - meta - android-build