File tree Expand file tree Collapse file tree 1 file changed +53
-0
lines changed
Expand file tree Collapse file tree 1 file changed +53
-0
lines changed Original file line number Diff line number Diff line change 1+ name : Build and Upload Python Package
2+ run-name : Building and uploading noterools Python package
3+ on :
4+ release :
5+ types : [published]
6+
7+ jobs :
8+ release-build :
9+ name : Build Python Package
10+ runs-on : ubuntu-latest
11+
12+ steps :
13+ - name : Check out repository code of master branch
14+ uses : actions/checkout@v4
15+
16+ - name : Install compiler
17+ run : sudo apt update && sudo apt install -y ninja-build libpython3-dev
18+
19+ - uses : actions/setup-python@v5
20+ with :
21+ python-version : " 3.10"
22+
23+ - name : Install dependencies
24+ run : pip install build twine meson
25+
26+ - name : Build Python Package
27+ run : python -m build --sdist ${{ github.workspace }}
28+
29+ - name : upload windows dists
30+ uses : actions/upload-artifact@v4
31+ with :
32+ name : release-dists
33+ path : dist/
34+
35+ pypi-publish :
36+ name : Upload package to pypi
37+ runs-on : ubuntu-latest
38+ needs :
39+ - release-build
40+ permissions :
41+ id-token : write
42+
43+ steps :
44+ - name : Retrieve release distributions
45+ uses : actions/download-artifact@v4
46+ with :
47+ name : release-dists
48+ path : dist/
49+
50+ - name : Publish release distributions to PyPI
51+ uses : pypa/gh-action-pypi-publish@release/v1.12
52+ with :
53+ verbose : true
You can’t perform that action at this time.
0 commit comments