Fix invalid artifact names
This commit is contained in:
parent
46dde5252c
commit
4f871840e5
1 changed files with 8 additions and 7 deletions
15
.github/workflows/python.yml
vendored
15
.github/workflows/python.yml
vendored
|
|
@ -18,8 +18,9 @@ jobs:
|
||||||
|
|
||||||
- name: Find Python packages
|
- name: Find Python packages
|
||||||
id: find-packages
|
id: find-packages
|
||||||
|
working-directory: src
|
||||||
run: |
|
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
|
echo "packages=$PACKAGES" >> $GITHUB_OUTPUT
|
||||||
|
|
||||||
build:
|
build:
|
||||||
|
|
@ -38,25 +39,25 @@ jobs:
|
||||||
- name: Set up Python
|
- name: Set up Python
|
||||||
uses: actions/setup-python@v5
|
uses: actions/setup-python@v5
|
||||||
with:
|
with:
|
||||||
python-version-file: "${{ matrix.package }}/.python-version"
|
python-version-file: "src/${{ matrix.package }}/.python-version"
|
||||||
|
|
||||||
- name: Install dependencies
|
- name: Install dependencies
|
||||||
working-directory: ${{ matrix.package }}
|
working-directory: src/${{ matrix.package }}
|
||||||
run: uv sync --frozen --all-extras --dev
|
run: uv sync --frozen --all-extras --dev
|
||||||
|
|
||||||
- name: Run pyright
|
- name: Run pyright
|
||||||
working-directory: ${{ matrix.package }}
|
working-directory: src/${{ matrix.package }}
|
||||||
run: uv run --frozen pyright
|
run: uv run --frozen pyright
|
||||||
|
|
||||||
- name: Build package
|
- name: Build package
|
||||||
working-directory: ${{ matrix.package }}
|
working-directory: src/${{ matrix.package }}
|
||||||
run: uv build
|
run: uv build
|
||||||
|
|
||||||
- name: Upload artifacts
|
- name: Upload artifacts
|
||||||
uses: actions/upload-artifact@v4
|
uses: actions/upload-artifact@v4
|
||||||
with:
|
with:
|
||||||
name: dist-${{ matrix.package }}
|
name: dist-${{ matrix.package }}
|
||||||
path: ${{ matrix.package }}/dist/
|
path: src/${{ matrix.package }}/dist/
|
||||||
|
|
||||||
publish:
|
publish:
|
||||||
needs: [build, detect-packages]
|
needs: [build, detect-packages]
|
||||||
|
|
@ -67,7 +68,7 @@ jobs:
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
environment: release
|
environment: release
|
||||||
permissions:
|
permissions:
|
||||||
id-token: write # Required for trusted publishing
|
id-token: write # Required for trusted publishing
|
||||||
|
|
||||||
steps:
|
steps:
|
||||||
- name: Download artifacts
|
- name: Download artifacts
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue