We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent f6d4b53 commit 520d501Copy full SHA for 520d501
1 file changed
.github/workflows/ci.yml
@@ -48,3 +48,29 @@ jobs:
48
sys.exit(1)
49
print('Capability manifest is current.')
50
"
51
+
52
+ publish:
53
+ name: Publish to PyPI
54
+ runs-on: ubuntu-latest
55
+ needs: test
56
+ if: github.event_name == 'push' && github.ref == 'refs/heads/main'
57
58
+ steps:
59
+ - uses: actions/checkout@v4
60
61
+ - name: Set up Python
62
+ uses: actions/setup-python@v5
63
+ with:
64
+ python-version: "3.11"
65
66
+ - name: Install build tools
67
+ run: pip install build twine
68
69
+ - name: Build distribution
70
+ run: python3 -m build
71
72
+ - name: Publish to PyPI
73
+ env:
74
+ TWINE_USERNAME: __token__
75
+ TWINE_PASSWORD: ${{ secrets.PYPI_API_TOKEN }}
76
+ run: twine upload dist/*
0 commit comments