1
0
Fork 0
mirror of synced 2024-05-19 12:02:54 +12:00
Rare/.github/workflows/job_pypi.yml

30 lines
689 B
YAML

name: job_pypi
on:
workflow_call:
inputs:
version:
required: true
type: string
jobs:
build:
name: Deploy
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: Set up Python
uses: actions/setup-python@v4
with:
python-version: '3.9'
- name: Install dependencies
run: |
python3 -m pip install --upgrade pip
pip3 install setuptools wheel twine
- name: Build and publish
env:
TWINE_USERNAME: __token__
TWINE_PASSWORD: ${{ secrets.PYPI_TOKEN }}
run: |
python setup.py sdist bdist_wheel
twine upload dist/*