Skip to content

Commit

Permalink
[ci] Publish autorun workflow (#5)
Browse files Browse the repository at this point in the history
* Update Publish.yml

* Update Publish.yml

* Update Publish.yml

* Update Publish.yml
Routhleck authored Sep 7, 2024
1 parent 6cae54b commit a292ee7
Showing 1 changed file with 22 additions and 14 deletions.
36 changes: 22 additions & 14 deletions .github/workflows/Publish.yml
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 }}

0 comments on commit a292ee7

Please sign in to comment.