Skip to content

packaging changes (#41) #13

packaging changes (#41)

packaging changes (#41) #13

Workflow file for this run

name: PyPI release
on:
push:
branches:
- main
jobs:
bump-version:
name: Bump package version
if: "!contains(github.event.head_commit.message, 'Bump version')"
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
with:
persist-credentials: false
- name: current_version
run: echo "current_version=$(grep 'Version' DESCRIPTION | cut -d ' ' -f2)" >> $GITHUB_ENV
- name: bump2version-action
uses: FragileTech/[email protected]
with:
current_version: "${{ env.current_version }}"
files: DESCRIPTION
commit_name: Version autobump
commit_email: [email protected]
login: "${{ secrets.REPO_LOGIN }}"
token: "${{ secrets.REPO_PAT }}"
# part defaults to patch
# part: minor
- name: Create dist
run: |
pip install pybind11
python setup.py sdist
- name: Publish
uses: pypa/gh-action-pypi-publish@release/v1
with:
password: ${{ secrets.PYPI_API_TOKEN }}
repository-url: https://upload.pypi.org/legacy/