Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update to publish package using workflow_dispatch #92

Merged
merged 2 commits into from
Nov 4, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 2 additions & 3 deletions .github/workflows/build.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -8,15 +8,14 @@ on:
types: [opened, synchronize]
branches:
- master
release:
types: [published]
workflow_dispatch: {}

jobs:
publish:
timeout-minutes: 5
runs-on: ubuntu-latest
needs: [test, lint]
if: github.event_name == 'release'
if: github.event_name == 'workflow_dispatch'
env:
python_version_publish: "3.13"
steps:
Expand Down
2 changes: 1 addition & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ sdist:
wheel:
python setup.py bdist_wheel

publish_repository ?= testpypi
publish_repository ?= testpypi # Set to pypi to publish as production
publish: sdist wheel
twine upload --repository $(publish_repository) dist/*

Expand Down
Loading