Skip to content

Commit

Permalink
Create pypi.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
ss1917 authored Jun 4, 2024
1 parent 229acf5 commit f8572fc
Showing 1 changed file with 34 additions and 0 deletions.
34 changes: 34 additions & 0 deletions .github/workflows/pypi.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,34 @@
name: Publish Python 🐍 distributions 📦 to PyPI
on:
push:
# schedule:
# - cron: '0 4 */1 * *'
jobs:
build:
name: Publish Python 🐍 distributions 📦 to PyPI
runs-on: ubuntu-18.04
steps:
- uses: actions/checkout@master
with:
fetch-depth: 1
- name: Set up Python 3.9
uses: actions/setup-python@v1
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@master
with:
user: __token__
password: ${{ secrets.pypi_password }}
# repository_url: https://pypi.org/legacy/


0 comments on commit f8572fc

Please sign in to comment.