File tree Expand file tree Collapse file tree 1 file changed +40
-0
lines changed
Expand file tree Collapse file tree 1 file changed +40
-0
lines changed Original file line number Diff line number Diff line change 1+ name : Release to PyPI
2+
3+ on :
4+ release :
5+ types : [published]
6+
7+ jobs :
8+ tests :
9+ uses : ./.github/workflows/test.yaml
10+ pypi-publish :
11+ name : Upload release to PyPI
12+ runs-on : ubuntu-latest
13+ needs : tests
14+ environment : release
15+ permissions :
16+ id-token : write
17+ steps :
18+ - uses : actions/checkout@v4
19+ - name : Set up Python
20+ uses : actions/setup-python@v4
21+ with :
22+ python-version : " 3.12"
23+ - name : Install pypa/build
24+ run : >-
25+ python -m
26+ pip install
27+ build
28+ --user
29+ - name : Build a binary wheel and a source tarball
30+ run : >-
31+ python -m
32+ build
33+ --sdist
34+ --wheel
35+ --outdir dist/
36+ .
37+ - name : Publish a Python distribution to PyPI
38+ uses : pypa/gh-action-pypi-publish@release/v1
39+ with :
40+ verbose : true
You can’t perform that action at this time.
0 commit comments