fix: revert to reliable artifact upload
Some checks failed
Build libostree Backport / Build libostree Backport (push) Failing after 1s
Some checks failed
Build libostree Backport / Build libostree Backport (push) Failing after 1s
Revert from Debian Package Registry API (404 errors) back to proven artifact upload method. Update README with clear download instructions for Actions artifacts.
This commit is contained in:
parent
0ea13ef18f
commit
e3775c5de5
2 changed files with 22 additions and 54 deletions
|
|
@ -133,32 +133,9 @@ jobs:
|
||||||
echo "" >> release-assets/INSTALL.md
|
echo "" >> release-assets/INSTALL.md
|
||||||
echo "Build completed on: $(date)" >> release-assets/INSTALL.md
|
echo "Build completed on: $(date)" >> release-assets/INSTALL.md
|
||||||
|
|
||||||
- name: Install curl for package upload
|
- name: Upload artifacts
|
||||||
run: |
|
uses: actions/upload-artifact@v4
|
||||||
apt-get update -y
|
with:
|
||||||
apt-get install -y curl
|
name: libostree-packages
|
||||||
|
path: release-assets/
|
||||||
- name: Upload to Debian Package Registry
|
retention-days: 90
|
||||||
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
|
|
||||||
41
README.md
41
README.md
|
|
@ -33,22 +33,7 @@ This repository contains the CI/CD workflow and scripts to build a backport of l
|
||||||
|
|
||||||
**How to Download**:
|
**How to Download**:
|
||||||
|
|
||||||
### Option 1: Debian Package Registry (Recommended)
|
### Option 1: Download from Actions (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
|
|
||||||
1. Go to the [Actions tab](https://git.raines.xyz/robojerk/libostree-dev/actions)
|
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
|
2. Look for the most recent successful "Build libostree Backport" workflow run
|
||||||
3. Click on the workflow run (it should show "Successful" status)
|
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)
|
5. Download the `libostree-packages` artifact (it will be a .zip file)
|
||||||
6. Extract the .zip file to get the .deb packages
|
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**:
|
**Quick Download Scripts**:
|
||||||
```bash
|
```bash
|
||||||
# Find the latest build automatically
|
# Find the latest build automatically
|
||||||
|
|
@ -68,17 +59,17 @@ Visit: https://git.raines.xyz/robojerk/libostree-dev/packages
|
||||||
### Installation
|
### Installation
|
||||||
|
|
||||||
```bash
|
```bash
|
||||||
# Option 1: Install via Debian Package Registry (Recommended)
|
# Download and install the package
|
||||||
echo "deb https://git.raines.xyz/api/packages/robojerk/debian/ noble main" | sudo tee /etc/apt/sources.list.d/libostree-dev.list
|
# 1. Visit: https://git.raines.xyz/robojerk/libostree-dev/actions
|
||||||
sudo apt update
|
# 2. Find the latest successful "Build libostree Backport" run
|
||||||
sudo apt install libostree-dev=2025.2-1~noble1
|
# 3. Download the libostree-packages artifact
|
||||||
|
# 4. Extract and install:
|
||||||
# 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:
|
|
||||||
sudo dpkg -i libostree-dev_2025.2-1~noble1_amd64.deb
|
sudo dpkg -i libostree-dev_2025.2-1~noble1_amd64.deb
|
||||||
sudo apt-get install -f # Install any missing dependencies
|
sudo apt-get install -f # Install any missing dependencies
|
||||||
|
|
||||||
|
# Verify installation
|
||||||
|
pkg-config --modversion ostree-1
|
||||||
|
# Should output: 2025.2
|
||||||
```
|
```
|
||||||
|
|
||||||
### Verification
|
### Verification
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue