Skip to content

Commit 83df513

Browse files
committed
m
1 parent f7b99ee commit 83df513

File tree

1 file changed

+6
-2
lines changed

1 file changed

+6
-2
lines changed

.github/workflows/release.yml

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,10 @@
11
name: Publish Python distribution to PyPI and TestPyPI
22

33
on:
4+
push:
5+
schedule:
6+
# schedule a dev release on every 1st of the month, at 2034 UTC
7+
- cron: "34 20 1 * *"
48
workflow_dispatch:
59
inputs:
610
tag:
@@ -63,10 +67,10 @@ jobs:
6367
uses: pypa/gh-action-pypi-publish@release/v1
6468
with:
6569
repository-url: https://test.pypi.org/legacy/
66-
70+
6771
publish-to-pypi:
6872
name: publish
69-
if: ${{ inputs.environment == 'pypi' }}
73+
if: ${{ github.event_name == 'schedule' || github.event.inputs.environment == 'pypi' }}
7074
needs:
7175
- build
7276
runs-on: ubuntu-latest

0 commit comments

Comments
 (0)