From 764311a94c40ec1816a41a728d5895dbf87c994e Mon Sep 17 00:00:00 2001 From: Claude Date: Tue, 17 Feb 2026 10:47:39 +0000 Subject: [PATCH] Fix release workflow: remove paths filter, add workflow_dispatch tag input - Remove paths filter so tag pushes always trigger builds - Remove branch push triggers (only tags trigger builds now) - Add optional tag input to workflow_dispatch for manual releases - Update upload steps to work with workflow_dispatch + tag input - This fixes the issue where release only contained source code https://claude.ai/code/session_01RQBndg4ZPmYAToK4KKcBzp --- .github/workflows/release.yml | 33 +++++++++++++-------------------- 1 file changed, 13 insertions(+), 20 deletions(-) diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 3c385ae8..8d9b65e8 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -2,25 +2,16 @@ name: Release 3X-UI on: workflow_dispatch: + inputs: + tag: + description: 'Tag to upload release assets to (e.g. v2.6.1-tt). Leave empty to build without uploading.' + required: false + type: string release: types: [published] push: - branches: - - main - - claude/add-trusttunnel-protocol-vZFzn tags: - "v*.*.*" - paths: - - '**.js' - - '**.css' - - '**.html' - - '**.sh' - - '**.go' - - 'go.mod' - - 'go.sum' - - 'x-ui.service.debian' - - 'x-ui.service.arch' - - 'x-ui.service.rhel' jobs: build: @@ -142,11 +133,12 @@ jobs: - name: Upload files to GH release uses: svenstaro/upload-release-action@v2 if: | - (github.event_name == 'release' && github.event.action == 'published') || - (github.event_name == 'push' && startsWith(github.ref, 'refs/tags/')) + github.event_name == 'release' || + (github.event_name == 'push' && startsWith(github.ref, 'refs/tags/')) || + (github.event_name == 'workflow_dispatch' && github.event.inputs.tag != '') with: repo_token: ${{ secrets.GITHUB_TOKEN }} - tag: ${{ github.ref }} + tag: ${{ github.event.inputs.tag || github.ref }} file: x-ui-linux-${{ matrix.platform }}.tar.gz asset_name: x-ui-linux-${{ matrix.platform }}.tar.gz overwrite: true @@ -239,11 +231,12 @@ jobs: - name: Upload files to GH release uses: svenstaro/upload-release-action@v2 if: | - (github.event_name == 'release' && github.event.action == 'published') || - (github.event_name == 'push' && startsWith(github.ref, 'refs/tags/')) + github.event_name == 'release' || + (github.event_name == 'push' && startsWith(github.ref, 'refs/tags/')) || + (github.event_name == 'workflow_dispatch' && github.event.inputs.tag != '') with: repo_token: ${{ secrets.GITHUB_TOKEN }} - tag: ${{ github.ref }} + tag: ${{ github.event.inputs.tag || github.ref }} file: x-ui-windows-amd64.zip asset_name: x-ui-windows-amd64.zip overwrite: true