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 4f87184
Showing 1 changed file with 8 additions and 7 deletions.
15 changes: 8 additions & 7 deletions .github/workflows/python.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand All @@ -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]
Expand All @@ -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
Expand Down

0 comments on commit 4f87184

Please sign in to comment.