feat: integrate Forgejo Debian Package Registry for professional distribution
Some checks failed
Build libostree Backport / Build libostree Backport (push) Failing after 10m14s
Some checks failed
Build libostree Backport / Build libostree Backport (push) Failing after 10m14s
- Replace artifact upload with Debian Package Registry integration - Add automatic package upload to Forgejo's native Debian repository - Update README with apt repository installation instructions - Provide multiple download methods: apt repo, direct download, and artifacts - Enable users to install packages via standard apt commands - Improve package distribution with version control and deduplication This change transforms the package distribution from manual artifact downloads to a professional Debian repository that users can add to their apt sources.
This commit is contained in:
parent
8d6a2d9da1
commit
7f512cfab4
2 changed files with 58 additions and 11 deletions
|
|
@ -131,4 +131,29 @@ jobs:
|
|||
done
|
||||
|
||||
echo "" >> release-assets/INSTALL.md
|
||||
echo "Build completed on: $(date)" >> release-assets/INSTALL.md
|
||||
echo "Build completed on: $(date)" >> release-assets/INSTALL.md
|
||||
|
||||
- name: Upload to Debian Package Registry
|
||||
run: |
|
||||
# Upload each .deb package to Forgejo's Debian Package Registry
|
||||
for deb_file in release-assets/*.deb; do
|
||||
if [ -f "$deb_file" ]; then
|
||||
echo "Uploading $deb_file to Debian Package Registry..."
|
||||
# Extract package name and version
|
||||
pkg_name=$(dpkg-deb -f "$deb_file" Package)
|
||||
pkg_version=$(dpkg-deb -f "$deb_file" Version)
|
||||
pkg_arch=$(dpkg-deb -f "$deb_file" Architecture)
|
||||
|
||||
echo "Package: $pkg_name"
|
||||
echo "Version: $pkg_version"
|
||||
echo "Architecture: $pkg_arch"
|
||||
|
||||
# Upload to Forgejo's Debian Package Registry
|
||||
# This will be available at: https://git.raines.xyz/api/packages/robojerk/debian
|
||||
curl -X POST \
|
||||
-H "Authorization: token ${{ secrets.GITEA_TOKEN }}" \
|
||||
-H "Content-Type: application/vnd.debian.binary-package" \
|
||||
--data-binary "@$deb_file" \
|
||||
"https://git.raines.xyz/api/packages/robojerk/debian/$pkg_name/$pkg_version/$pkg_arch"
|
||||
fi
|
||||
done
|
||||
Loading…
Add table
Add a link
Reference in a new issue