Skip to content

Commit

Permalink
add publish github action (#695)
Browse files Browse the repository at this point in the history
  • Loading branch information
JakeUrban authored Aug 21, 2023
1 parent fa8da34 commit 48ffd9c
Showing 1 changed file with 27 additions and 0 deletions.
27 changes: 27 additions & 0 deletions .github/release.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
Name: Publish to PyPI

on:
release:
types: [created]

jobs:
publish:
runs-on: ubuntu-latest
permissions:
id-token: write
steps:
- name: Checkout
uses: actions/checkout@v3
- name: Set up Python
uses: actions/setup-python@v4
with:
python-version: '3.11'
cache: poetry
- name: Install Package
run: poetry install
- name: Test Package
run: poetry run pytest
- name: Build Package Distributions
run: poetry build
- name: Publish Package Distributions to PyPI
uses: pypa/gh-action-pypi-publish@release/v1

0 comments on commit 48ffd9c

Please sign in to comment.