From 515ef1a9b77b9fcfe5f21908769a5a977ef4974c Mon Sep 17 00:00:00 2001 From: Stephen Privitera <13150473+sprivite@users.noreply.github.com> Date: Tue, 9 Jan 2024 10:11:22 +0100 Subject: [PATCH] Create pypi.yml --- .github/workflows/pypi.yml | 28 ++++++++++++++++++++++++++++ 1 file changed, 28 insertions(+) create mode 100644 .github/workflows/pypi.yml diff --git a/.github/workflows/pypi.yml b/.github/workflows/pypi.yml new file mode 100644 index 0000000..01fcca4 --- /dev/null +++ b/.github/workflows/pypi.yml @@ -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