Skip to content

Commit

Permalink
Draft usage of PyPI action.
Browse files Browse the repository at this point in the history
  • Loading branch information
kklein committed Jul 4, 2024
1 parent 6b33115 commit 9b6f971
Showing 1 changed file with 22 additions and 3 deletions.
25 changes: 22 additions & 3 deletions .github/workflows/package.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,26 @@ jobs:
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:
ref: ${{ github.head_ref }}
fetch-depth: 0
# TODO: Build and upload to PyPI.
path: dist/*

upload_pypi:
name: Upload to PyPI
needs: [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 }}

0 comments on commit 9b6f971

Please sign in to comment.