Skip to content

Commit fc01803

Browse files
authored
Merge pull request #510 from redhat-performance/development
Development->Master
2 parents f97fde9 + 388984b commit fc01803

File tree

3 files changed

+242
-227
lines changed

3 files changed

+242
-227
lines changed

.github/workflows/production-release.yml

Lines changed: 11 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -77,20 +77,25 @@ jobs:
7777
echo "$API_TOKEN_CONTENT" > "$HOME/.config/copr"
7878
7979
- name: Sync Spec Version and Build
80-
env:
81-
RELEASE_VERSION: ${{ needs.release.outputs.version }}
8280
run: |
8381
cd rpm
84-
sed -i "s/^Version:.*/Version: ${RELEASE_VERSION}/" python3-badfish.spec
82+
83+
# 1. Build the SRPM
8584
make srpm
85+
86+
# 2. Find the SRPM file (handles cases where it is in ./ or subdirs)
8687
SRPM_FILE=$(find . -name "*.src.rpm" -type f | head -n 1)
88+
8789
if [ -z "$SRPM_FILE" ]; then
88-
echo "Error: No .src.rpm file found in $(pwd) or subdirectories."
89-
echo "Ensure your Makefile outputs the SRPM locally or defines _topdir."
90-
exit 1
90+
echo "Error: No .src.rpm file found after running 'make srpm'"
91+
exit 1
9192
fi
93+
9294
echo "Found SRPM: $SRPM_FILE"
95+
96+
# 3. Submit to COPR
9397
copr build quadsdev/badfish "$SRPM_FILE"
98+
9499
# ------------------------------------------------------------------
95100
# JOB 3: QUAY PUBLISH (Master & Latest)
96101
# ------------------------------------------------------------------

0 commit comments

Comments
 (0)