mirror of
https://github.com/modelcontextprotocol/servers.git
synced 2024-12-01 18:58:34 +03:00
Fix invalid artifact names
This commit is contained in:
15
.github/workflows/python.yml
vendored
15
.github/workflows/python.yml
vendored
@@ -18,8 +18,9 @@ jobs:
|
||||
|
||||
- name: Find Python packages
|
||||
id: find-packages
|
||||
working-directory: src
|
||||
run: |
|
||||
PACKAGES=$(find src -name pyproject.toml -exec dirname {} \; | jq -R -s -c 'split("\n")[:-1]')
|
||||
PACKAGES=$(find . -name pyproject.toml -exec dirname {} \; | sed 's/^\.\///' | jq -R -s -c 'split("\n")[:-1]')
|
||||
echo "packages=$PACKAGES" >> $GITHUB_OUTPUT
|
||||
|
||||
build:
|
||||
@@ -38,25 +39,25 @@ jobs:
|
||||
- name: Set up Python
|
||||
uses: actions/setup-python@v5
|
||||
with:
|
||||
python-version-file: "${{ matrix.package }}/.python-version"
|
||||
python-version-file: "src/${{ matrix.package }}/.python-version"
|
||||
|
||||
- name: Install dependencies
|
||||
working-directory: ${{ matrix.package }}
|
||||
working-directory: src/${{ matrix.package }}
|
||||
run: uv sync --frozen --all-extras --dev
|
||||
|
||||
- name: Run pyright
|
||||
working-directory: ${{ matrix.package }}
|
||||
working-directory: src/${{ matrix.package }}
|
||||
run: uv run --frozen pyright
|
||||
|
||||
- name: Build package
|
||||
working-directory: ${{ matrix.package }}
|
||||
working-directory: src/${{ matrix.package }}
|
||||
run: uv build
|
||||
|
||||
- name: Upload artifacts
|
||||
uses: actions/upload-artifact@v4
|
||||
with:
|
||||
name: dist-${{ matrix.package }}
|
||||
path: ${{ matrix.package }}/dist/
|
||||
path: src/${{ matrix.package }}/dist/
|
||||
|
||||
publish:
|
||||
needs: [build, detect-packages]
|
||||
@@ -67,7 +68,7 @@ jobs:
|
||||
runs-on: ubuntu-latest
|
||||
environment: release
|
||||
permissions:
|
||||
id-token: write # Required for trusted publishing
|
||||
id-token: write # Required for trusted publishing
|
||||
|
||||
steps:
|
||||
- name: Download artifacts
|
||||
|
||||
Reference in New Issue
Block a user