Skip to content

Commit

Permalink
Add release-pypi.yaml to relase to Pypi
Browse files Browse the repository at this point in the history
Remove the other release workflows to only release to Pypi
  • Loading branch information
brasmusson committed Jan 6, 2024
1 parent c6c29dd commit c56b22d
Show file tree
Hide file tree
Showing 6 changed files with 43 additions and 107 deletions.
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.

19 changes: 0 additions & 19 deletions .github/workflows/release-perl.yml

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.

0 comments on commit c56b22d

Please sign in to comment.