Skip to content

Update pypi.yml

Update pypi.yml #2

Workflow file for this run

name: Release
permissions:
contents: write
pages: write
id-token: write
on: [push, pull_request]
jobs:
pypi-publish:
runs-on: ubuntu-latest
environment:
name: pypi
url: https://pypi.org/p/pybalance
permissions:
id-token: write # IMPORTANT: this permission is mandatory for trusted publishing
steps:
- name: Checkout Repository 🛎️
uses: actions/checkout@v3
- name: Install Python 3.9 🐍
uses: actions/setup-python@v4
with:
python-version: '3.9'
- name: Build deps
run: pip install -r environments/requirements.txt && python3 -m pip install build
- name: Build sdist
run: python3 -m build --sdist && python3 -m build --wheel
- name: Publish package distributions to PyPI
uses: pypa/gh-action-pypi-publish@release/v1