chore(ci): fix github actions job dependency

Signed-off-by: Hiroshi Miura <miurahr@linux.com>
This commit is contained in:
Hiroshi Miura
2025-02-28 14:42:35 +09:00
parent 07e9c2bf3d
commit 0187f5d802

View File

@@ -30,22 +30,23 @@ jobs:
run: python -m build ./ run: python -m build ./
- name: twine check - name: twine check
run: python -m twine check dist/* run: python -m twine check dist/*
- name: upload dists - name: upload dist artifacts
uses: actions/upload-artifact@v4 uses: actions/upload-artifact@v4
with: with:
name: release-dists name: dists
path: dist/ path: dist/
publish: publish:
name: publish Python 🐍 distributions 📦 to PyPI name: publish Python 🐍 distributions 📦 to PyPI
runs-on: ubuntu-22.04 runs-on: ubuntu-22.04
needs: build
permissions: permissions:
id-token: write id-token: write
steps: steps:
- name: Retrieve release distributions - name: download dist artifacts
uses: actions/download-artifact@v4 uses: actions/download-artifact@v4
with: with:
name: release-dists name: dists
path: dist/ path: dist/
- name: Publish distribution 📦 to Test PyPI when releases branch - name: Publish distribution 📦 to Test PyPI when releases branch
if: ${{ startsWith(github.event.ref, 'refs/heads/releases') }} if: ${{ startsWith(github.event.ref, 'refs/heads/releases') }}