Skip to content

Add default steps of pre-compilation #5

Add default steps of pre-compilation

Add default steps of pre-compilation #5

Workflow file for this run

name: PyPI workflow
on:
push:
branches:
- main
jobs:
pypi-publish:
name: upload release to PyPI
runs-on: ubuntu-latest
# Specifying a GitHub environment is optional, but strongly encouraged
environment: release
permissions:
# IMPORTANT: this permission is mandatory for trusted publishing
id-token: write
steps:
# Checkout your code
- name: Checkout code
uses: actions/checkout@v2
# Setup Python environment
- name: Set up Python
uses: actions/setup-python@v2
with:
python-version: '3.x' # Use the version of Python you want
# Install build tools
- name: Install build tools
run: |
python -m pip install --upgrade pip
pip install setuptools wheel
# Build the Python distribution
- name: Build distribution
run: python setup.py sdist bdist_wheel
- name: Publish package distributions to PyPI
uses: pypa/gh-action-pypi-publish@release/v1