Skip to content

Commit

Permalink
pypi
Browse files Browse the repository at this point in the history
  • Loading branch information
yannikkellerde committed Mar 25, 2024
1 parent 967565c commit eeaa633
Showing 1 changed file with 26 additions and 0 deletions.
26 changes: 26 additions & 0 deletions workflows/publish_to_pypi.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
name: Publish to PyPI
run-name: ${{ github.actor }} is publishing to PyPI
on: [push]
jobs:
pypi-publish:
name: upload release to PyPI
runs-on: ubuntu-latest

# Specifying a GitHub environment is optional, but strongly encouraged
environment: publish_to_pypi
permissions:
# IMPORTANT: this permission is mandatory for trusted publishing
id-token: write
steps:
# retrieve your distributions here
- uses: actions/checkout@v4
- name: Set up Python 3.9
uses: actions/setup-python@v3
with:
python-version: '3.9'
- name: Install Python dependencies
run: python -m pip install --upgrade pip build
- name: Build Source and Wheel Distributions
run: python -m build
- name: Publish package distributions to PyPI
uses: pypa/gh-action-pypi-publish@release/v1

0 comments on commit eeaa633

Please sign in to comment.