mirror of
https://github.com/Hopiu/django-cachalot.git
synced 2026-05-20 02:11:52 +00:00
31 lines
624 B
YAML
31 lines
624 B
YAML
name: Publish to PyPi
|
|
|
|
on:
|
|
release:
|
|
types:
|
|
- created
|
|
|
|
jobs:
|
|
publish-to-pypi:
|
|
runs-on: ubuntu-latest
|
|
steps:
|
|
- uses: actions/checkout@v2
|
|
- name: Set up Python 3.7
|
|
uses: actions/setup-python@v1
|
|
with:
|
|
python-version: 3.7
|
|
|
|
- name: Build a binary wheel and a source tarball
|
|
run: >-
|
|
python -m
|
|
pep517.build
|
|
--source
|
|
--binary
|
|
--out-dir dist/
|
|
.
|
|
|
|
- name: Publish a Python distribution to PyPI
|
|
uses: pypa/gh-action-pypi-publish@master
|
|
with:
|
|
user: __token__
|
|
password: ${{ secrets.pypi_password }}
|