File tree Expand file tree Collapse file tree 1 file changed +12
-18
lines changed
Expand file tree Collapse file tree 1 file changed +12
-18
lines changed Original file line number Diff line number Diff line change @@ -4,39 +4,33 @@ on: [push, workflow_dispatch]
44
55jobs :
66 # Auto-publish when version is increased
7- deploy :
7+ pypi-publish :
8+ name : Publish release to PyPI
9+ if : github.ref == 'refs/heads/pypi'
810 runs-on : ubuntu-latest
911 environment :
1012 name : pypi
1113 url : https://pypi.org/project/ssak/
1214 permissions :
1315 id-token : write # IMPORTANT: this permission is mandatory for trusted publishing
14- defaults :
15- run :
16- working-directory : ./src
16+ # defaults:
17+ # run:
18+ # working-directory: ./src
1719 steps :
18- - name : Checkout code
19- uses : actions/checkout@v4
20-
20+ - uses : actions/checkout@v4
2121 - name : Set up Python
22- uses : actions/setup-python@v5
22+ uses : actions/setup-python@v4
2323 with :
2424 python-version : " 3.x"
25-
2625 - name : Install dependencies
2726 run : |
28- python3 -m pip install --upgrade pip
29- pip install build
30-
27+ python -m pip install --upgrade pip
28+ pip install setuptools wheel
3129 - name : Build package
3230 run : |
33- python3 -m pip install --upgrade build
34- python3 -m build
35-
36- - name : Publish package to PyPI
31+ python setup.py sdist bdist_wheel # Could also be python -m build
32+ - name : Publish package distributions to PyPI
3733 uses : pypa/gh-action-pypi-publish@release/v1
38- with :
39- packages-dir : ./src/dist/
4034
4135
4236
You can’t perform that action at this time.
0 commit comments