-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Loading status checks…
[ci] Publish autorun workflow (#5)
* Update Publish.yml * Update Publish.yml * Update Publish.yml * Update Publish.yml
Showing
1 changed file
with
22 additions
and
14 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,17 +1,25 @@ | ||
name: Publish to PyPI.org | ||
|
||
on: | ||
release: | ||
types: [published] | ||
schedule: | ||
- cron: '0 20 * * *' # GMT 20 == GMT+8 04 | ||
workflow_dispatch: | ||
# Manually trigger the release workflow, a version must be provided | ||
inputs: | ||
version: | ||
description: 'The version to release (e.g. v0.8.0), or leave it empty for nightly build' | ||
type: string | ||
required: false | ||
jobs: | ||
pypi: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: Checkout | ||
uses: actions/checkout@v4 | ||
with: | ||
fetch-depth: 0 | ||
- run: python setup.py bdist_wheel --python-tag=py3 | ||
- name: Publish package | ||
uses: pypa/gh-action-pypi-publish@release/v1 | ||
with: | ||
password: ${{ secrets.PYPI_API_TOKEN }} | ||
pypi: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: Checkout | ||
uses: actions/checkout@v4 | ||
with: | ||
fetch-depth: 0 | ||
- run: python setup.py bdist_wheel --python-tag=py3 | ||
- name: Publish package | ||
uses: pypa/gh-action-pypi-publish@release/v1 | ||
with: | ||
password: ${{ secrets.PYPI_API_TOKEN }} |