diff --git a/.forgejo/workflows/build-libostree-backport.yml b/.forgejo/workflows/build-libostree-backport.yml index 2f9b451..c045348 100644 --- a/.forgejo/workflows/build-libostree-backport.yml +++ b/.forgejo/workflows/build-libostree-backport.yml @@ -133,32 +133,9 @@ jobs: echo "" >> release-assets/INSTALL.md echo "Build completed on: $(date)" >> release-assets/INSTALL.md - - name: Install curl for package upload - run: | - apt-get update -y - apt-get install -y curl - - - 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 \ No newline at end of file + - name: Upload artifacts + uses: actions/upload-artifact@v4 + with: + name: libostree-packages + path: release-assets/ + retention-days: 90 \ No newline at end of file diff --git a/README.md b/README.md index dc79b94..d956566 100644 --- a/README.md +++ b/README.md @@ -33,22 +33,7 @@ This repository contains the CI/CD workflow and scripts to build a backport of l **How to Download**: -### Option 1: Debian Package Registry (Recommended) -Packages are available in Forgejo's Debian Package Registry: - -```bash -# Add the repository -echo "deb https://git.raines.xyz/api/packages/robojerk/debian/ noble main" | sudo tee /etc/apt/sources.list.d/libostree-dev.list - -# Update and install -sudo apt update -sudo apt install libostree-dev=2025.2-1~noble1 -``` - -### Option 2: Direct Download from Package Registry -Visit: https://git.raines.xyz/robojerk/libostree-dev/packages - -### Option 3: Manual Download from Actions +### Option 1: Download from Actions (Recommended) 1. Go to the [Actions tab](https://git.raines.xyz/robojerk/libostree-dev/actions) 2. Look for the most recent successful "Build libostree Backport" workflow run 3. Click on the workflow run (it should show "Successful" status) @@ -56,6 +41,12 @@ Visit: https://git.raines.xyz/robojerk/libostree-dev/packages 5. Download the `libostree-packages` artifact (it will be a .zip file) 6. Extract the .zip file to get the .deb packages +### Option 2: Direct Download Links +Once artifacts are uploaded, you can download individual packages: +- `libostree-dev_2025.2-1~noble1_amd64.deb` (105KB) - Main development package +- `libostree-1-1_2025.2-1~noble1_amd64.deb` (355KB) - Runtime library +- `ostree_2025.2-1~noble1_amd64.deb` (190KB) - Command line tools + **Quick Download Scripts**: ```bash # Find the latest build automatically @@ -68,17 +59,17 @@ Visit: https://git.raines.xyz/robojerk/libostree-dev/packages ### Installation ```bash -# Option 1: Install via Debian Package Registry (Recommended) -echo "deb https://git.raines.xyz/api/packages/robojerk/debian/ noble main" | sudo tee /etc/apt/sources.list.d/libostree-dev.list -sudo apt update -sudo apt install libostree-dev=2025.2-1~noble1 - -# Option 2: Manual download and install -# 1. Visit: https://git.raines.xyz/robojerk/libostree-dev/packages -# 2. Download libostree-dev_2025.2-1~noble1_amd64.deb -# 3. Install: +# Download and install the package +# 1. Visit: https://git.raines.xyz/robojerk/libostree-dev/actions +# 2. Find the latest successful "Build libostree Backport" run +# 3. Download the libostree-packages artifact +# 4. Extract and install: sudo dpkg -i libostree-dev_2025.2-1~noble1_amd64.deb sudo apt-get install -f # Install any missing dependencies + +# Verify installation +pkg-config --modversion ostree-1 +# Should output: 2025.2 ``` ### Verification