Skip to content

Commit

Permalink
m
Browse files Browse the repository at this point in the history
  • Loading branch information
masklinn committed Nov 23, 2024
1 parent f7b99ee commit 83df513
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
@@ -1,6 +1,10 @@
name: Publish Python distribution to PyPI and TestPyPI

on:
push:
schedule:
# schedule a dev release on every 1st of the month, at 2034 UTC
- cron: "34 20 1 * *"
workflow_dispatch:
inputs:
tag:
Expand Down Expand Up @@ -63,10 +67,10 @@ jobs:
uses: pypa/gh-action-pypi-publish@release/v1
with:
repository-url: https://test.pypi.org/legacy/

publish-to-pypi:
name: publish
if: ${{ inputs.environment == 'pypi' }}
if: ${{ github.event_name == 'schedule' || github.event.inputs.environment == 'pypi' }}
needs:
- build
runs-on: ubuntu-latest
Expand Down

0 comments on commit 83df513

Please sign in to comment.