docs: add Ubuntu PPA and Fedora COPR installation instructions (#48)

- Add Ubuntu PPA section to INSTALL.md (requires Ubuntu 25.10+)
- Add Fedora COPR section to INSTALL.md (requires Fedora 42+)
- Update README.md Quick Start with PPA/COPR as recommended methods
- Add GitHub Actions workflow to auto-update RPM spec version on tag push
This commit is contained in:
Marco Cadetg
2025-10-14 10:33:42 +02:00
committed by GitHub
parent 3c4d5e4bc1
commit a402cdd545
3 changed files with 143 additions and 14 deletions

73
.github/workflows/copr-update-spec.yml vendored Normal file
View File

@@ -0,0 +1,73 @@
name: Update COPR Spec Version
on:
push:
tags:
- "v[0-9]+.[0-9]+.[0-9]+"
permissions:
contents: write
jobs:
update-spec:
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v4
with:
fetch-depth: 0
token: ${{ secrets.GITHUB_TOKEN }}
- name: Extract version from tag
id: version
run: |
# Extract version by removing 'v' prefix
VERSION=${GITHUB_REF#refs/tags/v}
echo "version=$VERSION" >> $GITHUB_OUTPUT
echo "Extracted version: $VERSION"
- name: Update RPM spec file
run: |
VERSION="${{ steps.version.outputs.version }}"
SPEC_FILE="rpm/rustnet.spec"
# Update the Version: line in the spec file
sed -i "s/^Version:.*/Version: $VERSION/" "$SPEC_FILE"
echo "Updated $SPEC_FILE to version $VERSION"
echo ""
echo "Version line:"
grep "^Version:" "$SPEC_FILE"
- name: Commit and push changes
run: |
VERSION="${{ steps.version.outputs.version }}"
# Configure git
git config user.name "github-actions[bot]"
git config user.email "github-actions[bot]@users.noreply.github.com"
# Check if there are changes to commit
if git diff --quiet rpm/rustnet.spec; then
echo "No changes to rpm/rustnet.spec (already at version $VERSION)"
exit 0
fi
# Commit and push
git add rpm/rustnet.spec
git commit -m "chore: update RPM spec to version $VERSION"
git push origin HEAD:main
echo "Pushed changes to main branch"
- name: Summary
run: |
echo "## 🎉 RPM Spec Updated" >> $GITHUB_STEP_SUMMARY
echo "" >> $GITHUB_STEP_SUMMARY
echo "- **Version**: ${{ steps.version.outputs.version }}" >> $GITHUB_STEP_SUMMARY
echo "- **File**: rpm/rustnet.spec" >> $GITHUB_STEP_SUMMARY
echo "" >> $GITHUB_STEP_SUMMARY
echo "COPR will automatically rebuild the package via webhook." >> $GITHUB_STEP_SUMMARY
echo "" >> $GITHUB_STEP_SUMMARY
echo "[View COPR Builds →](https://copr.fedorainfracloud.org/coprs/domcyrus/rustnet/builds/)" >> $GITHUB_STEP_SUMMARY