Skip to content

Commit

Permalink
[Python] Add workflow release-pypi.yaml
Browse files Browse the repository at this point in the history
Also remove the invalid classifier Framework :: Gherkin from
pyproject.toml
  • Loading branch information
brasmusson committed Jan 14, 2024
1 parent 20f213b commit 0ef5255
Show file tree
Hide file tree
Showing 2 changed files with 44 additions and 1 deletion.
44 changes: 44 additions & 0 deletions .github/workflows/release-pypi.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,44 @@
name: Release Python

on:
push:
branches: [release/*]

jobs:
release:
name: Release
runs-on: ubuntu-latest
environment: Release
permissions:
id-token: write
defaults:
run:
working-directory: python
steps:
- name: Checkout code
uses: actions/checkout@v4

- name: Set up Python 3.10
uses: actions/setup-python@v5
with:
python-version: "3.10"

- name: Show Python version
run: python --version

- name: Install Python package dependencies
run: |
python -m pip install -U pip setuptools wheel twine build
pip install -e .
- name: Build dist
run: python -m build .

- name: Check dist
run: twine check dist/*

- name: Publish package distributions to PyPI
uses: pypa/gh-action-pypi-publish@release/v1
with:
packages-dir: python/dist/
skip-existing: true
1 change: 0 additions & 1 deletion python/pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,6 @@ authors = [
]
classifiers = [
"Development Status :: 4 - Beta",
"Framework :: Gherkin",
"Intended Audience :: Developers",
"License :: OSI Approved :: MIT License",
"Operating System :: POSIX",
Expand Down

0 comments on commit 0ef5255

Please sign in to comment.