Skip to content

Commit

Permalink
2024年6月7日 更新一下02
Browse files Browse the repository at this point in the history
  • Loading branch information
ss1917 committed Jun 7, 2024
1 parent c88f877 commit 0face64
Showing 1 changed file with 29 additions and 24 deletions.
53 changes: 29 additions & 24 deletions .github/workflows/pypi.yml
Original file line number Diff line number Diff line change
@@ -1,34 +1,39 @@
name: Publish Python 🐍 distributions 📦 to PyPI

on:
push:
# schedule:
# - cron: '0 4 */1 * *'
branches:
- main

jobs:
build:
name: Publish Python 🐍 distributions 📦 to PyPI
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
with:
fetch-depth: 0
- name: Set up Python 3.9
uses: actions/setup-python@v2
with:
python-version: 3.9
- name: Install twine
run: >-
python -m
pip install
twine
--user
- name: Build a binary wheel and a source tarball
run: >-
python setup.py sdist
- name: Publish distribution 📦 to PyPI
uses: pypa/gh-action-pypi-publish@v2
with:
user: __token__
password: ${{ secrets.pypi_password }}
# repository_url: https://pypi.org/legacy/
- uses: actions/checkout@v2
with:
fetch-depth: 0

- name: Set up Python 3.9
uses: actions/setup-python@v2
with:
python-version: 3.9

- name: Install dependencies
run: |
python -m pip install --upgrade pip
pip install twine
- name: Build distributions
run: |
python setup.py sdist bdist_wheel
- name: Publish distribution 📦 to PyPI
uses: pypa/gh-action-pypi-publish@v2
with:
user: __token__
password: ${{ secrets.pypi_password }}
# repository_url: https://pypi.org/legacy/



0 comments on commit 0face64

Please sign in to comment.