Skip to content

Commit

Permalink
adding publish workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
rhymiz committed Feb 20, 2024
1 parent 5a05f98 commit 648a377
Show file tree
Hide file tree
Showing 3 changed files with 39 additions and 12 deletions.
27 changes: 27 additions & 0 deletions .github/workflows/release.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
name: PyPI Release
on:
release:
types: [ created ]
jobs:
pypi-publish:
runs-on: ubuntu-latest
environment: release
permissions:
id-token: write
steps:
- uses: actions/checkout@v4
- name: Set up Python
uses: actions/setup-python@v5
with:
python-version: '3.11'
- name: Install dependencies
run: |
curl -sSL https://install.python-poetry.org | python3 -
python -m pip install --upgrade pip
pip install setuptools wheel twine
poetry install
- name: Build and publish
run: |
poetry build
- name: Publish package distributions to PyPI
uses: pypa/gh-action-pypi-publish@release/v1
22 changes: 11 additions & 11 deletions poetry.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
name = "python-motion"
version = "0.1.0"
description = ""
authors = ["Lemi Boyce <lemuel@vokality.com>"]
authors = ["Lemuel Boyce <lemuel@vokality.com>"]
readme = "README.md"
license = "MIT"
packages = [{ "include" = "motion", from = "src" }]
Expand Down

0 comments on commit 648a377

Please sign in to comment.