diff --git a/.gitea/workflows/check_new_versions.yaml b/.gitea/workflows/check_new_versions.yaml index b28f39d..421ca1e 100644 --- a/.gitea/workflows/check_new_versions.yaml +++ b/.gitea/workflows/check_new_versions.yaml @@ -76,20 +76,22 @@ jobs: echo "::notice::Downloading release from $DOWNLOAD_URL ..." curl -L -o "${{ steps.check_release.outputs.file }}" "$DOWNLOAD_URL" tar -xzf "${{ steps.check_release.outputs.file }}" + find . - # # - name: Build RPM - # # if: steps.check_release_exists.outputs.exists != 'true' - # # run: | - # # VERSION="${{ steps.check_release.outputs.latest_tag }}" - # # VERSION="${VERSION#v}" # remove leading 'v' if present - # # sed -i "s/^Version:.*/Version: ${VERSION}/" uv.spec + - name: Build RPM + if: steps.check_release_exists.outputs.exists != 'true' + run: | + cp source/share/rpm/environment-modules.spec.in environment-modules.spec + VERSION="${{ steps.check_release.outputs.latest_tag }}" + VERSION="${VERSION#v}" # remove leading 'v' if present + sed -i "s/^Version:.*/Version: ${VERSION}/" environment-modules.spec - # # # move the tar file to the right place - # # mkdir -p /data/SOURCES/ - # # mv "${{ env.file }}" /data/SOURCES/ + # move the tar file to the right place + mkdir -p /data/SOURCES/ + mv "${{ steps.check_release.outputs.file }}" /data/SOURCES/ - # # rpmbuild -ba uv.spec - # # find /data/RPMS + rpmbuild -ba environment-modules.spec + find /data/RPMS # - name: Upload RHEL8 RPM to Gitea # if: steps.check_release_exists.outputs.exists != 'true'