Skip to content

Draft usage of PyPI action. #299

Draft usage of PyPI action.

Draft usage of PyPI action. #299

Workflow file for this run

name: Package
on: [push]
concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true
jobs:
build:
name: Build Package
runs-on: ubuntu-latest
steps:
- name: Checkout branch
uses: actions/checkout@v4
- name: Set up pixi
uses: prefix-dev/[email protected]
- name: Build
run: |
pixi run python -m build
- uses: actions/upload-artifact@v4
with:
path: dist/*
upload_pypi:
name: Upload to PyPI
needs: [build_artifacts]

Check failure on line 26 in .github/workflows/package.yml

View workflow run for this annotation

GitHub Actions / Package

Invalid workflow file

The workflow is not valid. .github/workflows/package.yml (Line: 26, Col: 13): Job 'upload_pypi' depends on unknown job 'build_artifacts'.
runs-on: ubuntu-latest
if: github.event_name == 'release' && github.event.action == 'published'
steps:
- uses: actions/download-artifact@v4
with:
name: artifact
path: dist
- uses: pypa/[email protected]
with:
user: __token__
password: ${{ secrets.PYPI_TOKEN }}