From 9d2d126bed3753d6389cad9b5daac22d0398c434 Mon Sep 17 00:00:00 2001 From: JieXu Date: Tue, 19 Aug 2025 20:08:09 +0800 Subject: [PATCH] Update build-linux.yml --- .github/workflows/build-linux.yml | 44 +++++++++++++++---------------- 1 file changed, 22 insertions(+), 22 deletions(-) diff --git a/.github/workflows/build-linux.yml b/.github/workflows/build-linux.yml index 56909465..67ba541b 100644 --- a/.github/workflows/build-linux.yml +++ b/.github/workflows/build-linux.yml @@ -100,27 +100,27 @@ jobs: file_glob: true prerelease: true -# release RHEL package -- name: Package RPM (RHEL-family) - if: github.event.inputs.release_tag != '' - run: | - chmod 755 package-rhel.sh - # Build for both x86_64 and aarch64 in one go (explicit version passed; no --buildfrom) - ./package-rhel.sh "${{ github.event.inputs.release_tag }}" --arch all + # release RHEL package + - name: Package RPM (RHEL-family) + if: github.event.inputs.release_tag != '' + run: | + chmod 755 package-rhel.sh + # Build for both x86_64 and aarch64 in one go (explicit version passed; no --buildfrom) + ./package-rhel.sh "${{ github.event.inputs.release_tag }}" --arch all -- name: Upload RPM artifacts - if: github.event.inputs.release_tag != '' - uses: actions/upload-artifact@v4.6.2 - with: - name: v2rayN-rpm - path: | - ${{ env.HOME }}/rpmbuild/RPMS/**/*.rpm + - name: Upload RPM artifacts + if: github.event.inputs.release_tag != '' + uses: actions/upload-artifact@v4.6.2 + with: + name: v2rayN-rpm + path: | + ${{ env.HOME }}/rpmbuild/RPMS/**/*.rpm -- name: Upload RPMs to release - uses: svenstaro/upload-release-action@v2 - if: github.event.inputs.release_tag != '' - with: - file: ${{ env.HOME }}/rpmbuild/RPMS/**/*.rpm - tag: ${{ github.event.inputs.release_tag }} - file_glob: true - prerelease: true + - name: Upload RPMs to release + uses: svenstaro/upload-release-action@v2 + if: github.event.inputs.release_tag != '' + with: + file: ${{ env.HOME }}/rpmbuild/RPMS/**/*.rpm + tag: ${{ github.event.inputs.release_tag }} + file_glob: true + prerelease: true