Skip to content

Commit

Permalink
temp: test wheels
Browse files Browse the repository at this point in the history
  • Loading branch information
eginhard committed Nov 6, 2024
1 parent 4fc282e commit bacc44f
Showing 1 changed file with 12 additions and 10 deletions.
22 changes: 12 additions & 10 deletions .github/workflows/pypi-release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,8 @@ name: Publish Python 🐍 distributions 📦 to PyPI
on:
release:
types: [published]
pull_request:
types: [opened, synchronize, reopened]
defaults:
run:
shell:
Expand All @@ -12,14 +14,14 @@ jobs:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Verify tag matches version
run: |
set -ex
version=$(grep -m 1 version pyproject.toml | grep -P '\d+\.\d+\.\d+' -o)
tag="${GITHUB_REF/refs\/tags\/}"
if [[ "v$version" != "$tag" ]]; then
exit 1
fi
# - name: Verify tag matches version
# run: |
# set -ex
# version=$(grep -m 1 version pyproject.toml | grep -P '\d+\.\d+\.\d+' -o)
# tag="${GITHUB_REF/refs\/tags\/}"
# if [[ "v$version" != "$tag" ]]; then
# exit 1
# fi
- uses: actions/setup-python@v5
with:
python-version: 3.9
Expand Down Expand Up @@ -64,5 +66,5 @@ jobs:
merge-multiple: true
- run: |
ls -lh dist/
- name: Publish package distributions to PyPI
uses: pypa/gh-action-pypi-publish@release/v1
# - name: Publish package distributions to PyPI
# uses: pypa/gh-action-pypi-publish@release/v1

0 comments on commit bacc44f

Please sign in to comment.