Skip to content

Commit

Permalink
release action
Browse files Browse the repository at this point in the history
  • Loading branch information
mgaitan committed May 28, 2023
1 parent 4a88cd9 commit 91bc945
Showing 1 changed file with 23 additions and 0 deletions.
23 changes: 23 additions & 0 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
name: Publish Python 🐍 distributions 📦 to PyPI

on:
push:
tags:
- "*"

jobs:
pypi-publish:
name: upload release to PyPI
runs-on: ubuntu-latest
if: github.event_name == 'push' && startsWith(github.ref, 'refs/tags')
permissions:
id-token: write
steps:
- name: Checkout
uses: actions/checkout@v4
- name: install build
run: python -m pip install --upgrade build
- name: build
run: python -m build
- name: Publish package distributions to PyPI
uses: pypa/gh-action-pypi-publish@release/v1

0 comments on commit 91bc945

Please sign in to comment.