Skip to content

Commit

Permalink
Create pypi.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
sprivite authored Jan 9, 2024
1 parent 905b6ae commit 515ef1a
Showing 1 changed file with 28 additions and 0 deletions.
28 changes: 28 additions & 0 deletions .github/workflows/pypi.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
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 dist
run: pip install -r environments/requirements.txt && python setup.py bdist
- name: Publish package distributions to PyPI
uses: pypa/gh-action-pypi-publish@release/v1

0 comments on commit 515ef1a

Please sign in to comment.