Skip to content

Add github workflow to upload to PyPI #2

Add github workflow to upload to PyPI

Add github workflow to upload to PyPI #2

Workflow file for this run

name: Publish to PyPI
on:
push:
branches:
- test-pypi
jobs:
build-and-publish:
name: publish to PyPI
runs-on: ubuntu-latest
permissions:
id-token: write
steps:
- uses: actions/checkout@v2
- name: Set up Python 3.8
uses: actions/setup-python@v2
with:
python-version: 3.8
- name: Install dependencies
run: |
python -m pip install --upgrade pip
pip install setuptools build twine
- name: Build dists
run: |
python -m build
- name: Upload to Pypi
uses: pypa/gh-action-pypi-publish@release/v1
with:
repository_url: https://test.pypi.org/legacy/