mirror of https://github.com/2dust/v2rayN
Update build-linux.yml
parent
9dc5f31b68
commit
395a3d1f7a
|
@ -100,7 +100,7 @@ jobs:
|
||||||
file_glob: true
|
file_glob: true
|
||||||
prerelease: true
|
prerelease: true
|
||||||
|
|
||||||
# release RHEL package
|
# release RHEL package
|
||||||
- name: Package RPM (RHEL-family)
|
- name: Package RPM (RHEL-family)
|
||||||
if: github.event.inputs.release_tag != ''
|
if: github.event.inputs.release_tag != ''
|
||||||
run: |
|
run: |
|
||||||
|
@ -108,22 +108,25 @@ jobs:
|
||||||
# Build for both x86_64 and aarch64 in one go (explicit version passed; no --buildfrom)
|
# 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
|
./package-rhel.sh "${{ github.event.inputs.release_tag }}" --arch all
|
||||||
|
|
||||||
|
- name: Collect RPMs into workspace
|
||||||
|
if: github.event.inputs.release_tag != ''
|
||||||
|
run: |
|
||||||
|
mkdir -p "${{ github.workspace }}/dist/rpm"
|
||||||
|
rsync -av "$HOME/rpmbuild/RPMS/" "${{ github.workspace }}/dist/rpm/"
|
||||||
|
|
||||||
- name: Upload RPM artifacts
|
- name: Upload RPM artifacts
|
||||||
if: github.event.inputs.release_tag != ''
|
if: github.event.inputs.release_tag != ''
|
||||||
uses: actions/upload-artifact@v4.6.2
|
uses: actions/upload-artifact@v4.6.2
|
||||||
with:
|
with:
|
||||||
name: v2rayN-rpm
|
name: v2rayN-rpm
|
||||||
path: |
|
path: |
|
||||||
/home/runner/rpmbuild/RPMS/x86_64/*.rpm
|
${{ github.workspace }}/dist/rpm/**/*.rpm
|
||||||
/home/runner/rpmbuild/RPMS/aarch64/*.rpm
|
|
||||||
|
|
||||||
- name: Upload RPMs to release
|
- name: Upload RPMs to release
|
||||||
uses: svenstaro/upload-release-action@v2
|
uses: svenstaro/upload-release-action@v2
|
||||||
if: github.event.inputs.release_tag != ''
|
if: github.event.inputs.release_tag != ''
|
||||||
with:
|
with:
|
||||||
file: |
|
file: ${{ github.workspace }}/dist/rpm/**/*.rpm
|
||||||
/home/runner/rpmbuild/RPMS/x86_64/*.rpm
|
|
||||||
/home/runner/rpmbuild/RPMS/aarch64/*.rpm
|
|
||||||
tag: ${{ github.event.inputs.release_tag }}
|
tag: ${{ github.event.inputs.release_tag }}
|
||||||
file_glob: true
|
file_glob: true
|
||||||
prerelease: true
|
prerelease: true
|
||||||
|
|
Loading…
Reference in New Issue