pyicloud/.github/workflows/publish.yml

28 lines
670 B
YAML
Raw Permalink Normal View History

name: Publish releases to PyPI
on:
release:
types: [published, prereleased]
jobs:
deploy:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2.4.0
2022-02-16 21:14:45 +01:00
- name: Set up Python 3.7
uses: actions/setup-python@v2.3.2
with:
2022-02-16 21:14:45 +01:00
python-version: 3.7
- name: Install dependencies
run: |
python -m pip install --upgrade pip
pip install wheel
- name: Build
run: |
python setup.py sdist bdist_wheel
- name: Publish release to PyPI
uses: pypa/gh-action-pypi-publish@v1.5.0
with:
user: __token__
password: ${{ secrets.PYPI_TOKEN }}