Skip to content

Workflow file for this run

name: Upload Python Package to Test PyPi and PyPi
on:
workflow_dispatch:
release:
types: [published]
jobs:
deploy:
permissions:
id-token: write
contents: write
packages: write
runs-on: ubuntu-20.04
steps:
- uses: actions/checkout@v4
- name: Set up Python
uses: actions/setup-python@v5
with:
python-version: '3.x'
- name: Install dependencies
run: |
python -m pip install --upgrade pip
pip install build
- name: Build package
run: python -m build
# - name: Publish package on Test PyPi
# uses: pypa/gh-action-pypi-publish@release/v1
# with:
# repository_url: https://test.pypi.org/legacy/
# - name: Publish package on PyPi
# uses: pypa/gh-action-pypi-publish@release/v1
- name: Upload release binaries
uses: alexellis/upload-assets@0.2.2
env:
GITHUB_TOKEN: ${{ github.token }}
with:
asset_paths: '["./dist/*"]'