Publishing
Publish your C/C++ projects to GitHub releases.
Prerequisites
- GitHub repository configured in
porters.toml:
[project]
repository = "https://github.com/username/project"
- GitHub Personal Access Token:
- Create at github.com/settings/tokens
- Required scopes:
repo
Publishing a Release
porters publish --version 1.0.0
With token:
porters publish --version 1.0.0 --token ghp_xxxxx
Or set environment variable:
export GITHUB_TOKEN=ghp_xxxxx
porters publish --version 1.0.0
What Gets Published
- Creates Git tag (e.g.,
v1.0.0) - Builds release binaries
- Creates GitHub release
- Uploads artifacts:
- Source tarball
- Platform-specific binaries
porters.toml
Version Management
Semantic Versioning
Follow SemVer:
- Major (1.0.0): Breaking changes
- Minor (0.1.0): New features, backward-compatible
- Patch (0.0.1): Bug fixes
Updating Version
Update in porters.toml:
[project]
version = "1.2.3"