Skip to content

Commit 648a377

Browse files
committed
adding publish workflow
1 parent 5a05f98 commit 648a377

File tree

3 files changed

+39
-12
lines changed

3 files changed

+39
-12
lines changed

.github/workflows/release.yaml

Lines changed: 27 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,27 @@
1+
name: PyPI Release
2+
on:
3+
release:
4+
types: [ created ]
5+
jobs:
6+
pypi-publish:
7+
runs-on: ubuntu-latest
8+
environment: release
9+
permissions:
10+
id-token: write
11+
steps:
12+
- uses: actions/checkout@v4
13+
- name: Set up Python
14+
uses: actions/setup-python@v5
15+
with:
16+
python-version: '3.11'
17+
- name: Install dependencies
18+
run: |
19+
curl -sSL https://install.python-poetry.org | python3 -
20+
python -m pip install --upgrade pip
21+
pip install setuptools wheel twine
22+
poetry install
23+
- name: Build and publish
24+
run: |
25+
poetry build
26+
- name: Publish package distributions to PyPI
27+
uses: pypa/gh-action-pypi-publish@release/v1

poetry.lock

Lines changed: 11 additions & 11 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

pyproject.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
name = "python-motion"
33
version = "0.1.0"
44
description = ""
5-
authors = ["Lemi Boyce <[email protected]>"]
5+
authors = ["Lemuel Boyce <[email protected]>"]
66
readme = "README.md"
77
license = "MIT"
88
packages = [{ "include" = "motion", from = "src" }]

0 commit comments

Comments
 (0)