From 0f17164d84a93652ebe2d5601a1a79cc996f8d8f Mon Sep 17 00:00:00 2001 From: Martin Styk Date: Wed, 17 Jan 2024 20:47:17 +0100 Subject: [PATCH] Build production RPMs as part of release Signed-off-by: Martin Styk --- .github/workflows/publish.yml | 22 ++++++++++++++++++++++ 1 file changed, 22 insertions(+) diff --git a/.github/workflows/publish.yml b/.github/workflows/publish.yml index d94668f4b..65bf6b197 100644 --- a/.github/workflows/publish.yml +++ b/.github/workflows/publish.yml @@ -55,3 +55,25 @@ jobs: uses: pypa/gh-action-pypi-publish@release/v1 with: print-hash: true + + release-rpm: + runs-on: ubuntu-latest + environment: production + container: + image: fedora:39 + steps: + - uses: actions/checkout@v1 + - name: Install release toolbox + run: | + dnf install git rpkg copr-cli /usr/bin/spectool -y + - name: Setup Copr config file + env: + # https://copr.fedorainfracloud.org/api/. + COPR_CONFIG_FILE: ${{ secrets.COPR_CONFIG }} + run: | + mkdir -p ~/.config + printf "$COPR_CONFIG_FILE" > ~/.config/copr + - name: Build new packages + run: | + spectool -g beaker.spec + rpkg copr-build @beaker-project/beaker