You can use this action to build a source rpm of given tarball and spec file.
Path to the tarball. Required.
Path to the spec file. Required.
List of files to provide as spec file Sources. Optional.
Absolute path to the created source rpm.
Source rpm file name.
- name: Build source rpm
id: srpm
uses: next-actions/build-srpm@master
with:
tarball: package-n-v-r.tar.gz
specfile: package.spec
sourcefiles: |
readme.md
testconf.example
- name: Upload source rpm as an artifact
uses: actions/upload-artifact@v2
with:
name: ${{ steps.srpm.outputs.file }}
path: ${{ steps.srpm.outputs.path }}