diff options
| author | Pk-web6936 <202365630+Pk-web6936@users.noreply.github.com> | 2025-04-18 23:32:38 +0300 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2025-04-18 23:32:38 +0300 |
| commit | cf02f02210b6501b8533a3cbbf96ed2077f71db5 (patch) | |
| tree | efe35a2af64b3be16bdc605a78724828fe53182b | |
| parent | 4dc8974af067c96488b5edea964a1102799243f7 (diff) | |
automatic Build and Release (#2919)
* Update release.yml
* Update release.yml
* Update release.yml
| -rw-r--r-- | .github/workflows/release.yml | 14 |
1 files changed, 10 insertions, 4 deletions
diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 1d267b5d..3f035f69 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -1,13 +1,17 @@ -name: Release 3X-UI +name: Build and Release 3X-UI on: workflow_dispatch: + release: + types: [published] push: - tags: - - "v*.*.*" + pull_request: + types: [opened, synchronize, reopened] jobs: build: + permissions: + contents: write strategy: matrix: platform: @@ -27,6 +31,7 @@ jobs: uses: actions/setup-go@v5 with: go-version-file: go.mod + check-latest: true - name: Install dependencies run: | @@ -45,7 +50,7 @@ jobs: sudo apt install gcc-s390x-linux-gnu fi - - name: Build x-ui + - name: Build 3x-ui run: | export CGO_ENABLED=1 export GOOS=linux @@ -134,6 +139,7 @@ jobs: - name: Upload files to GH release uses: svenstaro/upload-release-action@v2 + if: github.event_name == 'release' && github.event.action == 'published' with: repo_token: ${{ secrets.GITHUB_TOKEN }} tag: ${{ github.ref }} |
