Skip to content

Use pypa/gh-action-pypi-publish@release/v1 for upload to pypi #2

Use pypa/gh-action-pypi-publish@release/v1 for upload to pypi

Use pypa/gh-action-pypi-publish@release/v1 for upload to pypi #2

Workflow file for this run

name: Release Python
on:
push:
branches: [release/*]
jobs:
release:
name: Release
runs-on: ubuntu-latest
environment: Release
permissions:
id-token: write
defaults:
run:
working-directory: python
steps:
- name: Checkout code
uses: actions/checkout@v4
- name: Set up Python 3.10
uses: actions/setup-python@v5
with:
python-version: "3.10"
- name: Show Python version
run: python --version
- name: Install Python package dependencies
run: |
python -m pip install -U pip setuptools wheel twine
pip install -e .
- name: Build dist
run: python setup.py sdist bdist_wheel
- name: Check dist
run: twine check dist/*
- name: Publish package distributions to TestPyPI
uses: pypa/gh-action-pypi-publish@release/v1
with:
repository-url: https://test.pypi.org/legacy/