Skip to content

Commit c5b33be

Browse files
authored
Fix/update publish directory python (#21)
* fix: combine cd python with build commands to ensure correct working directory * refactor: consolidate Python build steps and fix directory navigation in publish workflow
1 parent 39e0c4a commit c5b33be

File tree

1 file changed

+8
-9
lines changed

1 file changed

+8
-9
lines changed

.github/workflows/publish-agent-toolkit-python.yml

Lines changed: 8 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -18,17 +18,16 @@ jobs:
1818
with:
1919
python-version: "3.11" # choose what you like
2020

21-
- name: move to python directory
22-
run: cd python
23-
24-
- name: Install build tools
25-
run: python -m pip install --upgrade build twine
26-
27-
- name: Build wheel & sdist
28-
run: python -m build # outputs to ./dist
21+
- name: setup and python Build
22+
run: |
23+
cd python
24+
python -m pip install --upgrade build twine
25+
python -m build
2926
3027
- name: Upload to PyPI
3128
env:
3229
TWINE_USERNAME: __token__
3330
TWINE_PASSWORD: ${{ secrets.PYPI_API_TOKEN }}
34-
run: python -m twine upload dist/* --non-interactive
31+
run: |
32+
cd python
33+
python -m twine upload dist/* --non-interactive

0 commit comments

Comments
 (0)