File tree Expand file tree Collapse file tree 1 file changed +37
-0
lines changed Expand file tree Collapse file tree 1 file changed +37
-0
lines changed Original file line number Diff line number Diff line change
1
+ name : Publish distributions to PyPI
2
+
3
+ # if this workflow is modified to be a generic CI workflow then
4
+ # add an if statement to the publish step so it only runs on tags.
5
+ on :
6
+ push :
7
+ tags :
8
+ - " v*"
9
+
10
+ jobs :
11
+ build-n-publish :
12
+ name : Build and publish distributions to PyPI
13
+ if : github.repository == 'cwru-sdle/pvimage'
14
+ runs-on : ubuntu-latest
15
+ steps :
16
+ # fetch all commits and tags so versioneer works
17
+ - uses : actions/checkout@v4
18
+ with :
19
+ fetch-depth : 0
20
+
21
+ - name : Set up Python
22
+ uses : actions/setup-python@v5
23
+ with :
24
+ python-version : " 3.12"
25
+
26
+ - name : Install build tools
27
+ run : |
28
+ python -m pip install --upgrade pip
29
+ python -m pip install --upgrade setuptools wheel build
30
+ - name : Build packages
31
+ run : python -m build --sdist --wheel
32
+
33
+ - name : Publish distribution to PyPI
34
+ uses : pypa/gh-action-pypi-publish@release/v1
35
+ with :
36
+ user : __token__
37
+ password : ${{ secrets.PYPI_PASSWORD }}
You can’t perform that action at this time.
0 commit comments