Skip to content

Commit

Permalink
[Python] Add workflow release-pypi.yaml (#245)
Browse files Browse the repository at this point in the history
* [Python] Add workflow release-pypi.yaml

Also remove the invalid classifier Framework :: Gherkin from
pyproject.toml

* Update Changelog.md
  • Loading branch information
brasmusson authored Jan 15, 2024
1 parent 19eea93 commit 9eca367
Show file tree
Hide file tree
Showing 3 changed files with 45 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: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@ The format is based on [Keep a Changelog](http://keepachangelog.com/)
and this project adheres to [Semantic Versioning](http://semver.org/).

## [Unreleased]
- [Python] added release workflow to release to Pypi ([#245](https://github.com/cucumber/ci-environment/pull/245))

## [10.0.0] - 2023-11-16
### Added
Expand Down
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 9eca367

Please sign in to comment.