File tree Expand file tree Collapse file tree 3 files changed +242
-227
lines changed
Expand file tree Collapse file tree 3 files changed +242
-227
lines changed Original file line number Diff line number Diff 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 # ------------------------------------------------------------------
You can’t perform that action at this time.
0 commit comments