Skip to content

Commit

Permalink
Add workflow release-pypi.yaml
Browse files Browse the repository at this point in the history
Also remove the other release workflows to only release to Pypi
  • Loading branch information
brasmusson committed Jan 10, 2024
1 parent f8896fe commit 92b627f
Show file tree
Hide file tree
Showing 9 changed files with 44 additions and 152 deletions.
20 changes: 0 additions & 20 deletions .github/workflows/release-cpan.yaml

This file was deleted.

18 changes: 0 additions & 18 deletions .github/workflows/release-github.yaml

This file was deleted.

25 changes: 0 additions & 25 deletions .github/workflows/release-mvn.yml

This file was deleted.

24 changes: 0 additions & 24 deletions .github/workflows/release-npm.yml

This file was deleted.

22 changes: 0 additions & 22 deletions .github/workflows/release-nuget.yaml

This file was deleted.

21 changes: 0 additions & 21 deletions .github/workflows/release-php.yaml

This file was deleted.

43 changes: 43 additions & 0 deletions .github/workflows/release-pypi.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,43 @@
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
pip install -e .
- name: Build dist
run: python setup.py sdist bdist_wheel

- 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/
21 changes: 0 additions & 21 deletions .github/workflows/release-rubygem.yml

This file was deleted.

2 changes: 1 addition & 1 deletion python/setup.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
# coding: utf-8
from distutils.core import setup
from setuptools import setup
setup(name="gherkin-official",
packages=["gherkin", "gherkin.pickles", "gherkin.stream"],
version="26.0.3",
Expand Down

0 comments on commit 92b627f

Please sign in to comment.