Skip to content

Commit ab1fa6c

Browse files
committed
try something else 2
1 parent 0e7be17 commit ab1fa6c

File tree

1 file changed

+12
-18
lines changed

1 file changed

+12
-18
lines changed

.github/workflows/publish.yml

Lines changed: 12 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -4,39 +4,33 @@ on: [push, workflow_dispatch]
44

55
jobs:
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

0 commit comments

Comments
 (0)