Skip to content

Commit

Permalink
test_publish
Browse files Browse the repository at this point in the history
  • Loading branch information
rchxx committed Oct 7, 2024
1 parent f8775c9 commit b17c4df
Show file tree
Hide file tree
Showing 3 changed files with 38 additions and 45 deletions.
9 changes: 5 additions & 4 deletions .github/workflows/pypi-publish.yml
Original file line number Diff line number Diff line change
@@ -1,8 +1,9 @@
name: publish pypi package

on:
release:
types: [published]
pull_request:
branches:
- test_publish

jobs:
build:
Expand All @@ -24,6 +25,6 @@ jobs:
run: |
pipenv run pipenv install
pipenv run python setup.py sdist bdist_wheel
pipenv run twine upload -u __token__ -p ${{secrets.PYPI_PUBLISH_TOKEN}} dist/*
# pipenv run twine upload -u __token__ -p ${{secrets.PYPI_PUBLISH_TOKEN}} dist/*
env:
PACKAGE_VERSION_TO_PUBLISH: ${{ github.event.release.name }}
PACKAGE_VERSION_TO_PUBLISH: ""
2 changes: 1 addition & 1 deletion Pipfile
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ idna = "==3.7"
requests = ">=2.32.3"

[dev-packages]
setuptools = ">=21.0.0"
setuptools = "==74.1.1"
wheel = "*"
twine = "*"
chardet = "*"
Expand Down
72 changes: 32 additions & 40 deletions Pipfile.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit b17c4df

Please sign in to comment.