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 d529958 commit 1d85ff6
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions .github/workflows/test-and-deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -61,16 +61,16 @@ 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'
if: github.event_name == 'release'
run: python setup.py bdist_rpm
- name: Copy spec file
#if: github.event_name == 'release'
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'
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'
if: github.event_name == 'release'
with:
name: rpm package
path: build/bdist.linux-x86_64/rpm/SRPMS/*.rpm
Expand Down

0 comments on commit 1d85ff6

Please sign in to comment.