Skip to content

Commit

Permalink
Fix invalid artifact names
Browse files Browse the repository at this point in the history
  • Loading branch information
jspahrsummers committed Nov 21, 2024
1 parent 46dde52 commit 576a121
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions .github/workflows/python.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ jobs:
- name: Find Python packages
id: find-packages
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:
Expand All @@ -41,22 +41,22 @@ jobs:
python-version-file: "${{ 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]
Expand All @@ -67,7 +67,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
Expand Down

0 comments on commit 576a121

Please sign in to comment.