- Go to Releases → New Release
- Create a new tag following the
v*.*.*format (e.g.v2.4.0) - Write release notes and click Publish release
The deploy.yml workflow runs automatically on release creation. It:
- Extracts the version number from the git tag
- Patches
Swift-BigInt.podspec(replacing the999.99.9placeholder) - Runs
pod trunk pushto publish to CocoaPods
SPM users get the new version automatically from the git tag — no extra step needed.
The COCOAPODS_TRUNK_TOKEN GitHub secret is required for CocoaPods publishing. Sessions expire after ~6 months. If the deploy workflow fails with:
[!] Authentication token is invalid or unverified.
Follow these steps to renew it:
-
Register a new session:
pod trunk register your-email@example.com --description='Swift-BigInt releases' -
Verify: Check your email and click the verification link.
-
Confirm the session is active:
pod trunk me
-
Copy the new token:
grep -A2 trunk ~/.netrcThe value after
passwordis your token. -
Update the GitHub secret: Go to Settings → Secrets → Actions, edit
COCOAPODS_TRUNK_TOKEN, paste the new token, and save. -
Re-run the failed workflow from the Actions tab.
The build.yml workflow runs on every push and PR to master:
- macOS: Builds and tests via SPM (
swift test) and CocoaPods (pod lib lint) - Linux: Builds and tests via SPM (
swift test)