Skip to content

Add PyPI publish workflow (GitHub Actions)#61

Merged
k9ert merged 1 commit intocryptoadvance:masterfrom
al-munazzim:add-pypi-publish-workflow
Feb 1, 2026
Merged

Add PyPI publish workflow (GitHub Actions)#61
k9ert merged 1 commit intocryptoadvance:masterfrom
al-munazzim:add-pypi-publish-workflow

Conversation

@al-munazzim
Copy link
Contributor

Automates PyPI publishing on tag push. No more manual twine upload.

How it works

  • Triggers on version tags (v*.*.*)
  • Uses PyPI trusted publishing (OIDC, no API tokens to manage)
  • setuptools_scm derives the version from the git tag automatically
  • Verifies the built package version matches the tag

Setup needed after merge

Configure trusted publishing on pypi.org:

  1. Go to PublishingAdd a new publisher
  2. Fill in:
    • Owner: cryptoadvance
    • Repository: spectrum
    • Workflow name: pypi-publish.yml
    • Environment: (leave blank)

Release process after setup

git tag v0.7.0
git push origin v0.7.0
# → workflow builds and publishes automatically

Uses PyPI trusted publishing (no API tokens needed).
Triggers on version tags (v*.*.*). setuptools_scm derives
the version from the git tag automatically.

After merging, configure trusted publishing on pypi.org:
  Project: cryptoadvance.spectrum
  → Publishing → Add a new publisher
  → Owner: cryptoadvance, Repo: spectrum
  → Workflow: pypi-publish.yml, Environment: (blank)
@k9ert k9ert merged commit 897629f into cryptoadvance:master Feb 1, 2026
0 of 2 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants