Begin renaming of SuperWASP to STING. #75
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: RPM Packaging | |
on: | |
push: | |
branches: | |
- master | |
jobs: | |
linux: | |
name: RPM Packaging | |
runs-on: ubuntu-22.04 | |
container: rockylinux:9 | |
steps: | |
- name: Install Dependencies | |
run: | | |
cat /etc/redhat-release | |
dnf -y install 'dnf-command(config-manager)' | |
dnf -y config-manager --set-enabled crb | |
dnf -y install https://dl.fedoraproject.org/pub/epel/epel-release-latest-9.noarch.rpm https://dl.fedoraproject.org/pub/epel/epel-next-release-latest-9.noarch.rpm | |
yum -y install git rpm-build rpm-sign make systemd-rpm-macros | |
- name: Clone Repository | |
uses: actions/checkout@v3 | |
- name: Clone Package Repository | |
uses: actions/checkout@v3 | |
with: | |
repository: warwick-one-metre/rocky-packages | |
token: ${{ secrets.DEPLOY_TOKEN }} | |
path: rocky-packages | |
- name: Set Package Versions | |
run: | | |
# Set the spec Revision field to <latest in repo> + 1 | |
rocky-packages/set-spec-release.sh observatory-dashboard.spec | |
- name: Package RPMs | |
run: | |
make | |
- name: Push Packages | |
env: | |
RPM_SIGNING_KEY: ${{ secrets.RPM_SIGNING_KEY }} | |
run: | | |
rocky-packages/sign-and-push-packages.sh *.rpm |