Skip to content

changed how the action is triggered #25

changed how the action is triggered

changed how the action is triggered #25

Workflow file for this run

---
name: Build release RPMs
on:
push:
branches:
- '*'
jobs:
build_el7_rpm:
name: Build EL7 RPM
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 # v4
- name: before Generate Manpages
run: |
# Add debug output
echo "Debug: Before running the script, current directory contents:"
ls -la
- name: Trigger Manpage Generation
uses: .github/workflows/generate_manpage.yml
- name: after Generate Manpages
run: |
# Add more debug output
echo "Debug: After running the script, current directory contents:"
ls -la
- name: Build RPM package for EL7
id: rpm_build_el7
uses: oamg/rpmbuild@el7
with:
spec_path: "packaging/convert2rhel.spec"
- name: Upload EL7 RPM as release asset
id: upload_release_asset_el7
uses: actions/upload-release-asset@v1
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
upload_url: ${{ github.event.release.upload_url }}
asset_path: ${{ steps.rpm_build_el7.outputs.rpm_path }}
asset_name: ${{ steps.rpm_build_el7.outputs.rpm_name }}
asset_content_type: ${{ steps.rpm_build_el7.outputs.content_type }}
build_el8_rpm:
name: Build EL8 RPM
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 # v4
- name: Build RPM package for EL8
id: rpm_build_el8
uses: oamg/rpmbuild@el8
with:
spec_path: "packaging/convert2rhel.spec"
- name: Upload EL8 RPM as release asset
id: upload_release_asset_el8
uses: actions/upload-release-asset@v1
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
upload_url: ${{ github.event.release.upload_url }}
asset_path: ${{ steps.rpm_build_el8.outputs.rpm_path }}
asset_name: ${{ steps.rpm_build_el8.outputs.rpm_name }}
asset_content_type: ${{ steps.rpm_build_el8.outputs.content_type }}
build_el9_rpm:
if: false
name: Build EL9 RPM
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v4
- name: Build RPM package for EL9
id: rpm_build_el9
uses: oamg/rpmbuild@el9
with:
spec_path: "packaging/convert2rhel.spec"
- name: Upload EL9 RPM as release asset
id: upload_release_asset_el9
uses: actions/upload-release-asset@v1
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
upload_url: ${{ github.event.release.upload_url }}
asset_path: ${{ steps.rpm_build_el9.outputs.rpm_path }}
asset_name: ${{ steps.rpm_build_el9.outputs.rpm_name }}
asset_content_type: ${{ steps.rpm_build_el9.outputs.content_type }}