Skip to content

Release new version 3.2.0 (#15) #1

Release new version 3.2.0 (#15)

Release new version 3.2.0 (#15) #1

Workflow file for this run

---
# When a tag is created
# - create a new release from the tag
# - build and attach packages to the release
name: Create packages and release
on:
push:
tags:
- "v*"
jobs:
centos7:
name: Build centOS 7 RPMs
runs-on: ubuntu-latest
container: quay.io/centos/centos:7
steps:
# XXX actions/checkout > v3 does not work on centos7
# see https://github.com/EGI-Federation/glite-info-provider-service/pull/4
- uses: actions/checkout@v3
with:
fetch-depth: 0
- name: install build requisites
run: |
yum install -y rpm-build yum-utils
yum-builddep -y lcg-infosites.spec
- name: build rpm
run: |
make clean rpm
- name: Upload RPMs
# XXX: actions/upload-artifact > 3 does not work on centos7
uses: actions/upload-artifact@v3
with:
name: rpms7
path: |
build/RPMS/noarch/lcg-infosites-*.el7.noarch.rpm
build/SRPMS/lcg-infosites-*.el7.src.rpm
almalinux8:
name: Build AlmaLinux 8 RPMs
runs-on: ubuntu-latest
container: almalinux:8
steps:
- uses: actions/checkout@v4
with:
fetch-depth: 0
- name: Install build requisites
run: |
yum install -y rpm-build yum-utils
yum-builddep -y lcg-infosites.spec
- name: build rpm
run: |
make clean rpm
- name: Upload RPMs
uses: actions/upload-artifact@v4
with:
name: rpms8
path: |
build/RPMS/noarch/lcg-infosites-*.el8.noarch.rpm
build/SRPMS/lcg-infosites-*.el8.src.rpm
almalinux9:
name: Build AlmaLinux 9 RPMs
runs-on: ubuntu-latest
container: almalinux:9
steps:
- uses: actions/checkout@v4
with:
fetch-depth: 0
- name: Install build requisites
run: |
yum install -y rpm-build yum-utils
yum-builddep -y lcg-infosites.spec
- name: build rpm
run: |
make clean rpm
- name: Upload RPMs
uses: actions/upload-artifact@v4
with:
name: rpms9
path: |
build/RPMS/noarch/lcg-infosites-*.el9.noarch.rpm
build/SRPMS/lcg-infosites-*.el9.src.rpm
release7:
name: Upload CentOS 7 release artefacts
permissions:
contents: write # to upload release asset (softprops/action-gh-release)
needs: centos7
runs-on: ubuntu-latest
steps:
# XXX: actions/download-artifact > 3 does not work on centos7
- uses: actions/download-artifact@v3
with:
name: rpms7
- name: Find package name
id: package_name_centos7
run: |
rpm_path=$(find . -name 'lcg-infosites-*.el7.noarch.rpm')
src_path=$(find . -name 'lcg-infosites-*.el7.src.rpm')
echo "rpm_path=${rpm_path}" >> "$GITHUB_OUTPUT"
echo "src_path=${src_path}" >> "$GITHUB_OUTPUT"
- name: Attach CentOS 7 RPMs to the release
uses: softprops/action-gh-release@v2
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
fail_on_unmatched_files: true
files: |
${{ steps.package_name_centos7.outputs.rpm_path }}
${{ steps.package_name_centos7.outputs.src_path }}
release8:
name: Upload AlmaLinux 8 release artefacts
permissions:
contents: write # to upload release asset (softprops/action-gh-release)
needs: almalinux8
runs-on: ubuntu-latest
steps:
- uses: actions/download-artifact@v4
with:
name: rpms8
- name: Find package name
id: package_name_almalinux8
run: |
rpm_path=$(find . -name 'lcg-infosites-*.el8.noarch.rpm')
src_path=$(find . -name 'lcg-infosites-*.el8.src.rpm')
echo "rpm_path=${rpm_path}" >> "$GITHUB_OUTPUT"
echo "src_path=${src_path}" >> "$GITHUB_OUTPUT"
- name: Attach AlmaLinux 8 RPMs to the release
uses: softprops/action-gh-release@v2
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
fail_on_unmatched_files: true
files: |
${{ steps.package_name_almalinux8.outputs.rpm_path }}
${{ steps.package_name_almalinux8.outputs.src_path }}
release9:
name: Upload AlmaLinux 9 release artefacts
permissions:
contents: write # to upload release asset (softprops/action-gh-release)
needs: almalinux9
runs-on: ubuntu-latest
steps:
- uses: actions/download-artifact@v4
with:
name: rpms9
- name: Find package name
id: package_name_almalinux9
run: |
rpm_path=$(find . -name 'lcg-infosites-*.el9.noarch.rpm')
src_path=$(find . -name 'lcg-infosites-*.el9.src.rpm')
echo "rpm_path=${rpm_path}" >> "$GITHUB_OUTPUT"
echo "src_path=${src_path}" >> "$GITHUB_OUTPUT"
- name: Attach AlmaLinux 9 RPMs to the release
uses: softprops/action-gh-release@v2
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
fail_on_unmatched_files: true
files: |
${{ steps.package_name_almalinux9.outputs.rpm_path }}
${{ steps.package_name_almalinux9.outputs.src_path }}