build package
This commit is contained in:
1 parent
891e6c9ce4
commit
6505c5053b
1 file changed
+13
-11
@@ -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'
|
||||
|
||||
Reference in new issue
Block a user