Skip to content

Commit

Permalink
Auto-submit to COPR
Browse files Browse the repository at this point in the history
  • Loading branch information
BlakeGardner committed Sep 25, 2024
1 parent 06ff0e9 commit c9e3832
Showing 1 changed file with 14 additions and 1 deletion.
15 changes: 14 additions & 1 deletion .github/workflows/rpm.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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)'
Expand Down Expand Up @@ -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

0 comments on commit c9e3832

Please sign in to comment.