From c9e3832a398e9e79b2fe25e71f5e22eec2454e45 Mon Sep 17 00:00:00 2001 From: Blake Gardner Date: Wed, 25 Sep 2024 14:52:43 -0500 Subject: [PATCH] Auto-submit to COPR --- .github/workflows/rpm.yml | 15 ++++++++++++++- 1 file changed, 14 insertions(+), 1 deletion(-) diff --git a/.github/workflows/rpm.yml b/.github/workflows/rpm.yml index 1de7fee..670f2a1 100644 --- a/.github/workflows/rpm.yml +++ b/.github/workflows/rpm.yml @@ -30,7 +30,7 @@ jobs: dnf -y update # Install RPM build tools and dependencies - dnf install -y rpm-build rpmdevtools dnf-plugins-core + dnf install -y rpm-build rpmdevtools dnf-plugins-core copr-cli # Install 'builddep' command for DNF dnf install -y 'dnf-command(builddep)' @@ -76,3 +76,16 @@ jobs: name: srpm path: | ~/rpmbuild/SRPMS/*.src.rpm + + - name: Configure copr-cli + run: | + mkdir -p ~/.config + echo "[copr-cli]" > ~/.config/copr + echo "login = ${{ secrets.COPR_LOGIN }}" >> ~/.config/copr + echo "username = blakegardner" >> ~/.config/copr + echo "token = ${{ secrets.COPR_TOKEN }}" >> ~/.config/copr + echo "copr_url = https://copr.fedorainfracloud.org" >> ~/.config/copr + + - name: Submit Source RPM to COPR + run: | + copr-cli build blakegardner/xremap ~/rpmbuild/SRPMS/xremap-*.src.rpm