Skip to content

Deploy artifacts to github #4

Deploy artifacts to github

Deploy artifacts to github #4

Workflow file for this run

name: "Deploy to PyPI"
on:
- push
# workflow_dispatch:
# inputs:
# tag:
# description: "Git tag to deploy to PyPI"
# required: true
jobs:
deploy:
name: "Deploy to PyPI"
runs-on: ubuntu-latest
environment: Deploy
steps:
- uses: actions/checkout@v4
with:
ref: ${{ github.event.inputs.tag }}
- uses: actions/setup-python@v5
with:
python-version: 3.x
- shell: bash
run: |
python -m pip install --disable-pip-version-check -U pip
python -m pip install -U build twine
python -m build
python -m twine check dist/*
python -m twine upload --username=__token__ --password=${{ secrets.PYPI_TOKEN }} dist/*
- uses: actions/upload-artifact@v4
with:
name: ${{ github.event.inputs.tag }}-test
path: dist/*