From 5114b7ca3863f3be1b3d02f392c9b903a6e745ec Mon Sep 17 00:00:00 2001 From: benlipkin Date: Mon, 23 Sep 2024 17:20:00 -0400 Subject: [PATCH] chore: add workflow to publish pypi release --- .github/workflows/release.yml | 32 ++++++++++++++++++++++++++++++++ 1 file changed, 32 insertions(+) create mode 100644 .github/workflows/release.yml diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml new file mode 100644 index 0000000..5a401ca --- /dev/null +++ b/.github/workflows/release.yml @@ -0,0 +1,32 @@ +name: publish release + +on: + release: + types: [created] + +jobs: + pypi-publish: + name: publish release + runs-on: ubuntu-latest + environment: + name: pypi + url: https://pypi.org/p/decoding + permissions: + id-token: write + steps: + - uses: actions/checkout@v4 + with: + fetch-depth: 1 + - name: setup python + uses: actions/setup-python@v5 + with: + python-version: 3.11 + - name: install dependencies + run: | + python -m pip install --upgrade pip + pip install setuptools wheel + - name: build package + run: | + python setup.py sdist bdist_wheel + - name: publish to pypi + uses: pypa/gh-action-pypi-publish@release/v1