Skip to content

Commit 8df83ac

Browse files
committed
Updated Github Action workflow
1 parent 64ccb39 commit 8df83ac

File tree

1 file changed

+10
-6
lines changed

1 file changed

+10
-6
lines changed

.github/workflows/publish.yml

Lines changed: 10 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,11 @@ jobs:
1515
runs-on: ubuntu-latest
1616
strategy:
1717
matrix:
18-
package: ['locallab', 'client/python_client']
18+
include:
19+
- package: 'locallab'
20+
path: '.' # Root directory for locallab package
21+
- package: 'python-client'
22+
path: 'client/python_client' # Python client directory
1923

2024
steps:
2125
- name: Checkout code
@@ -33,13 +37,13 @@ jobs:
3337
3438
- name: Build package
3539
run: |
36-
cd ${{ matrix.package }}
40+
cd ${{ matrix.path }}
3741
python -m build --sdist --wheel
3842
3943
- name: Publish package to PyPI
4044
uses: pypa/gh-action-pypi-publish@v1.4.2
4145
with:
42-
packages_dir: ${{ matrix.package }}/dist/
46+
packages_dir: ${{ matrix.path }}/dist/
4347
user: __token__
4448
password: ${{ secrets.PYPI_API_TOKEN }}
4549

@@ -48,10 +52,10 @@ jobs:
4852
env:
4953
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
5054
with:
51-
tag_name: v${{ github.run_number }}
52-
release_name: Release v${{ github.run_number }}
55+
tag_name: ${{ matrix.package }}-v${{ github.run_number }}
56+
release_name: ${{ matrix.package }} Release v${{ github.run_number }}
5357
body: |
54-
Release v${{ github.run_number }}
58+
${{ matrix.package }} Release v${{ github.run_number }}
5559
5660
Changes in this release:
5761
- See CHANGELOG.md for details

0 commit comments

Comments
 (0)