correctly placed the the before/after test #24
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
--- | |
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 | |
run: | | |
curl -X POST \ | |
-H "Authorization: token ${{ secrets.GITHUB_TOKEN }}" \ | |
-H "Accept: application/vnd.github.everest-preview+json" \ | |
-H "Content-Type: application/json" \ | |
https://api.github.com/repos/${{ github.repository }}/dispatches \ | |
--data '{"event_type": "trigger-manpage-generation"}' | |
- 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 }} |