Skip to content

Publish Python Package to PyPI #1

Publish Python Package to PyPI

Publish Python Package to PyPI #1

Workflow file for this run

name: Publish Python Package to PyPI
on:
workflow_dispatch:
inputs:
tag:
description: 'Version Tag'
required: true
jobs:
deploy:
runs-on: ubuntu-latest
environment: production
steps:
- uses: actions/checkout@v2
- name: Set up Python
uses: actions/setup-python@v2
with:
python-version: '3.12'
- name: "Download binaries from ${{ github.event.inputs.tag }}"
uses: robinraju/[email protected]
with:
repository: ${{ github.repository }}
tag: ${{ github.event.inputs.tag }}
fileName: "*"
out-file-path: "dist"
- name: List Files
run: |
ls dist
- name: Publish package
uses: pypa/gh-action-pypi-publish@release/v1
with:
user: __token__
password: ${{ secrets.PYPI_API_TOKEN }}