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 }} diff --git a/README.es_ES.md b/README.es_ES.md index 1438cc2d..afa1b8e3 100644 --- a/README.es_ES.md +++ b/README.es_ES.md @@ -40,7 +40,7 @@ bash <(curl -Ls https://raw.githubusercontent.com/mhsanaei/3x-ui/master/install. Para instalar la versión deseada, utiliza el siguiente comando de instalación. Por ejemplo, ver `v1.7.9`: ``` -VERSION=v1.7.9 && <(curl -Ls "https://raw.githubusercontent.com/mhsanaei/3x-ui/$VERSION/install.sh") $VERSION +VERSION=v1.7.9 && bash <(curl -Ls "https://raw.githubusercontent.com/mhsanaei/3x-ui/$VERSION/install.sh") $VERSION ``` ## Certificado SSL @@ -586,4 +586,4 @@ XUI_BIN_FOLDER="bin" XUI_DB_FOLDER="/etc/x-ui" go build main.go ## Estrellas a lo largo del tiempo -[![Stargazers over time](https://starchart.cc/MHSanaei/3x-ui.svg?variant=adaptive)](https://starchart.cc/MHSanaei/3x-ui) \ No newline at end of file +[![Stargazers over time](https://starchart.cc/MHSanaei/3x-ui.svg?variant=adaptive)](https://starchart.cc/MHSanaei/3x-ui) diff --git a/README.ru_RU.md b/README.ru_RU.md index b06c62bd..bc0170bb 100644 --- a/README.ru_RU.md +++ b/README.ru_RU.md @@ -40,7 +40,7 @@ bash <(curl -Ls https://raw.githubusercontent.com/mhsanaei/3x-ui/master/install. Чтобы установить желаемую версию, используйте следующую команду установки. Например, ver `v1.7.9`: ``` -VERSION=v1.7.9 && <(curl -Ls "https://raw.githubusercontent.com/mhsanaei/3x-ui/$VERSION/install.sh") $VERSION +VERSION=v1.7.9 && bash <(curl -Ls "https://raw.githubusercontent.com/mhsanaei/3x-ui/$VERSION/install.sh") $VERSION ``` ## SSL Сертификат @@ -593,4 +593,4 @@ XUI_BIN_FOLDER="bin" XUI_DB_FOLDER="/etc/x-ui" go build main.go ## Число звёзд со временем -[![Stargazers over time](https://starchart.cc/MHSanaei/3x-ui.svg?variant=adaptive)](https://starchart.cc/MHSanaei/3x-ui) \ No newline at end of file +[![Stargazers over time](https://starchart.cc/MHSanaei/3x-ui.svg?variant=adaptive)](https://starchart.cc/MHSanaei/3x-ui) diff --git a/README.zh_CN.md b/README.zh_CN.md index c221dc36..995a6ee1 100644 --- a/README.zh_CN.md +++ b/README.zh_CN.md @@ -40,7 +40,7 @@ bash <(curl -Ls https://raw.githubusercontent.com/mhsanaei/3x-ui/master/install. 要安装您想要的版本,请使用以下安装命令。例如,ver `v1.7.9`: ``` -VERSION=v1.7.9 && <(curl -Ls "https://raw.githubusercontent.com/mhsanaei/3x-ui/$VERSION/install.sh") $VERSION +VERSION=v1.7.9 && bash <(curl -Ls "https://raw.githubusercontent.com/mhsanaei/3x-ui/$VERSION/install.sh") $VERSION ``` ### SSL证书 @@ -586,4 +586,4 @@ XUI_BIN_FOLDER="bin" XUI_DB_FOLDER="/etc/x-ui" go build main.go ## Star趋势 -[![Stargazers over time](https://starchart.cc/MHSanaei/3x-ui.svg?variant=adaptive)](https://starchart.cc/MHSanaei/3x-ui) \ No newline at end of file +[![Stargazers over time](https://starchart.cc/MHSanaei/3x-ui.svg?variant=adaptive)](https://starchart.cc/MHSanaei/3x-ui)