Skip to content

Commit

Permalink
[CPCLOUD-4590] Build RPM package
Browse files Browse the repository at this point in the history
  • Loading branch information
skafandri committed Nov 7, 2024
1 parent 9673450 commit 3560950
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion .github/workflows/test-and-deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -61,15 +61,19 @@ jobs:
- name: Build a binary wheel and a source tarball
run: python -m build --sdist --wheel --outdir dist/
- name: Prepare RPM package
#if: github.event_name == 'release'
run: python setup.py bdist_rpm
- name: Copy spec file
#if: github.event_name == 'release'
run: cp agent360.spec build/bdist.linux-x86_64/rpm/SPECS/agent360.spec
- name: Build RPM package
#if: github.event_name == 'release'
run: rpmbuild -ba --define "__python python3" --define "_topdir $PWD/build/bdist.linux-x86_64/rpm" --clean ./build/bdist.linux-x86_64/rpm/SPECS/agent360.spec
- uses: actions/upload-artifact@v4
#if: github.event_name == 'release'
with:
name: rpm package
path: build/bdist.linux-x86_64/rpm/RPMS/x86_64/*.rpm
path: build/bdist.linux-x86_64/rpm/SRPMS/*.rpm
- name: Publish distribution 📦 to Test PyPI
if: github.ref == 'refs/heads/master'
uses: pypa/gh-action-pypi-publish@master
Expand Down

0 comments on commit 3560950

Please sign in to comment.