Repository navigation
Platformio_setup_summary
github-actions[bot] edited this page Sep 30, 2025
·
3 revisions
-
File:
.github/workflows/platformio-publish.yml - Triggers: Automatic on releases, manual dispatch for testing
- Features: Complete validation, authentication, and publishing pipeline
-
Updated
library.json: PlatformIO-specific optimizations - Name: Changed to "AlteriomPainlessMesh" for uniqueness
- Dependencies: All verified available in PlatformIO Registry
- Metadata: Enhanced with license, examples, export configuration
- Main release workflow now references PlatformIO publishing
-
Documentation updated in
RELEASE_GUIDE.md -
Comprehensive instructions in
docs/platformio-publishing.md
- Release Created: GitHub release triggers PlatformIO workflow
- Validation: Library.json format and dependencies checked
-
Authentication: Uses
PLATFORMIO_AUTH_TOKENsecret - Publication: Direct publishing via PlatformIO CLI
- Verification: Registry confirmation and user notification
- Go to GitHub Actions → PlatformIO Library Publishing
- Click "Run workflow"
- Enter version number and optional force publish
- Workflow handles the rest
- Create Account: https://platformio.org/account/register
- Generate Token: https://platformio.org/account/token
-
Add to Secrets: Repository Settings → Secrets → Actions
- Name:
PLATFORMIO_AUTH_TOKEN - Value: [your token from step 2]
- Name:
Local Testing (Optional):
# Method 1: Environment variable
$env:PLATFORMIO_AUTH_TOKEN="YOUR_TOKEN_HERE"
pio account show # Verify authentication
# Method 2: Interactive login (if token doesn't work)
pio account login
# Test publishing
pio pkg publish . --no-interactiveTroubleshooting Authentication:
# If authentication fails:
1. Go to https://platformio.org/account/token
2. Copy your existing token OR generate a new one
3. Set it as environment variable: $env:PLATFORMIO_AUTH_TOKEN="token"
4. Test: pio account showSince v1.6.1 is already released and published to other platforms:
1. Go to: https://github.com/Alteriom/painlessMesh/actions/workflows/platformio-publish.yml
2. Click "Run workflow"
3. Set version: 1.6.1
4. Enable force_publish: true
5. Click "Run workflow"
The PlatformIO workflow will automatically trigger on your next release (v1.6.2, etc.)
For all future releases, PlatformIO publishing is now fully automated:
# Standard release process remains the same
./scripts/bump-version.sh patch
# Edit CHANGELOG.md
git add . && git commit -m "release: v1.6.2" && git pushThis will now automatically:
- ✅ Create GitHub release
- ✅ Publish to NPM
- ✅ Publish to PlatformIO Registry
- ✅ Update GitHub Wiki
- ✅ Prepare Arduino Library Manager package
After publishing, verify at:
- Registry: https://registry.platformio.org/libraries
- Search: Search for "AlteriomPainlessMesh"
-
Installation:
pio pkg install --library "alteriom/AlteriomPainlessMesh@^1.6.1"
Complete documentation available:
-
Publishing Guide:
docs/platformio-publishing.md -
Release Process:
RELEASE_GUIDE.md(updated) -
Workflow Details:
.github/workflows/platformio-publish.yml
-
Add PlatformIO Token: Set up the
PLATFORMIO_AUTH_TOKENsecret - Test Workflow: Run manual workflow for v1.6.1 (optional)
- Next Release: PlatformIO publishing will be automatic
The PlatformIO publishing is now fully integrated into your release pipeline! 🎉