- Change file mode from 644 to 755 for all project files - Add chain_id parameter to get_balance RPC endpoint with default "ait-devnet" - Rename Miner.extra_meta_data to extra_metadata for consistency
5.7 KiB
Executable File
GitHub Packages Publishing Guide for Native Packages
🚀 Getting Your Native Packages Published
Your AITBC native packages (.deb and .pkg) are built and ready to be published. Since these are native binary packages, they'll be published as GitHub Releases (not GitHub Packages registry, which is for Docker/npm/Python packages).
📋 What's Been Set Up
I've created a workflow to publish your native packages:
publish-native-packages-simple.yml
- Publishes Debian (.deb) and macOS (.pkg) packages as GitHub Release assets
- Creates comprehensive release notes with installation instructions
- Generates package status documentation
- Includes checksums and verification information
🔧 How to Publish Your Packages
Option 1: Tag-Based Publishing (Recommended)
# Create and push a version tag
git tag v0.1.0
git push origin v0.1.0
This will automatically trigger the workflow and publish all packages as a GitHub Release.
Option 2: Manual Publishing
- Go to: https://github.com/oib/AITBC/actions
- Select "Publish Native Packages" workflow
- Click "Run workflow"
- Enter version (e.g., "0.1.0")
- Click "Run workflow"
📦 What Will Be Published
GitHub Release Assets
When published, your packages will appear as release assets at: https://github.com/oib/AITBC/releases
Linux Packages (.deb)
aitbc-cli_0.1.0_all.deb- Main CLI package (132KB)aitbc-node-service_0.1.0_all.deb- Blockchain node (8KB)aitbc-coordinator-service_0.1.0_all.deb- Coordinator API (8KB)aitbc-miner-service_0.1.0_all.deb- GPU miner (8KB)aitbc-marketplace-service_0.1.0_all.deb- Marketplace (8KB)aitbc-explorer-service_0.1.0_all.deb- Explorer (8KB)aitbc-wallet-service_0.1.0_all.deb- Wallet (8KB)aitbc-multimodal-service_0.1.0_all.deb- Multimodal AI (8KB)aitbc-all-services_0.1.0_all.deb- Complete stack (8KB)
macOS Packages (.pkg)
aitbc-cli-0.1.0-apple-silicon.pkg- CLI for Apple Silicon (4.6KB)aitbc-node-service-0.1.0-apple-silicon.pkg- Node service (2.5KB)aitbc-coordinator-service-0.1.0-apple-silicon.pkg- Coordinator (2.5KB)aitbc-miner-service-0.1.0-apple-silicon.pkg- Miner (2.4KB)aitbc-marketplace-service-0.1.0-apple-silicon.pkg- Marketplace (2.4KB)aitbc-explorer-service-0.1.0-apple-silicon.pkg- Explorer (2.4KB)aitbc-wallet-service-0.1.0-apple-silicon.pkg- Wallet (2.4KB)aitbc-multimodal-service-0.1.0-apple-silicon.pkg- Multimodal (2.4KB)aitbc-all-services-0.1.0-apple-silicon.pkg- Complete stack (2.4KB)
Supporting Files
checksums.txt- SHA256 checksums for verificationinstall-macos-complete.sh- macOS installer scriptinstall-macos-services.sh- macOS services installer
🔍 After Publishing
Once published, your packages will appear at: https://github.com/oib/AITBC/releases
You'll see:
- Release page with all package assets
- Installation instructions in release notes
- Download links for each package
- Checksum verification information
🚦 Prerequisites
Required Permissions
The workflow needs:
contents: write- to create releases and upload assets
Required Secrets
GITHUB_TOKEN- automatically provided by GitHub Actions
🛠️ Installation After Publishing
Linux (Debian/Ubuntu)
# Method 1: Universal installer
curl -fsSL https://raw.githubusercontent.com/oib/AITBC/main/packages/github/install.sh | bash
# Method 2: Direct download
wget https://github.com/oib/AITBC/releases/download/v0.1.0/aitbc-cli_0.1.0_all.deb
sudo dpkg -i aitbc-cli_0.1.0_all.deb
# Method 3: Complete stack
wget https://github.com/oib/AITBC/releases/download/v0.1.0/aitbc-all-services_0.1.0_all.deb
sudo dpkg -i aitbc-all-services_0.1.0_all.deb
macOS (Apple Silicon)
# Method 1: Universal installer
curl -fsSL https://raw.githubusercontent.com/oib/AITBC/main/packages/github/install-macos.sh | bash
# Method 2: Direct download
curl -L https://github.com/oib/AITBC/releases/download/v0.1.0/aitbc-cli-0.1.0-apple-silicon.pkg -o aitbc-cli.pkg
sudo installer -pkg aitbc-cli.pkg -target /
# Method 3: Complete stack
curl -L https://github.com/oib/AITBC/releases/download/v0.1.0/install-macos-complete.sh | bash
🔍 Troubleshooting
Packages Don't Show Up
- Check the Actions tab for workflow status
- Ensure you have the right permissions
- Verify the tag format (should be
v*likev0.1.0) - Check the Releases tab for the new release
Permission Errors
- Go to repository Settings > Actions > General
- Ensure "Read and write permissions" are enabled for Actions
- Check workflow permissions in the YAML file
Download Issues
# Verify checksums
sha256sum -c checksums.txt
# Check file integrity
ls -la *.deb *.pkg
📊 Package Status
Current Status: Ready to Publish ✅
- ✅ All packages built and verified
- ✅ Checksums validated
- ✅ Workflow configured and ready
- ✅ Installation scripts tested
- ✅ Documentation prepared
Next Steps
- Create version tag:
git tag v0.1.0 && git push origin v0.1.0 - Monitor workflow execution
- Verify release appears in GitHub Releases
- Test installation from published packages
📚 Additional Resources
Important Note: Native packages (.deb/.pkg) are published as GitHub Releases, not GitHub Packages registry. GitHub Packages is for container images, npm packages, and other package manager formats.
Ready to publish your native packages! 🚀