Skip to content

Commit

Permalink
chore: add workflow to publish pypi release
Browse files Browse the repository at this point in the history
  • Loading branch information
benlipkin committed Sep 23, 2024
1 parent d852ea9 commit 5114b7c
Showing 1 changed file with 32 additions and 0 deletions.
32 changes: 32 additions & 0 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
@@ -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

0 comments on commit 5114b7c

Please sign in to comment.