mirror of
https://github.com/kennethreitz/background.git
synced 2026-06-05 23:10:18 +00:00
773c5d6af5
Publish via gh-actions Add Black and flake8 linters
32 lines
593 B
YAML
32 lines
593 B
YAML
name: Publish
|
|
|
|
on:
|
|
push:
|
|
tags:
|
|
- v*
|
|
|
|
jobs:
|
|
Publish:
|
|
runs-on: ubuntu-latest
|
|
|
|
steps:
|
|
- name: Checkout
|
|
uses: actions/checkout@v2
|
|
|
|
- name: Set up Python
|
|
uses: actions/setup-python@v2
|
|
with:
|
|
python-version: 3.9
|
|
|
|
- name: Install dependencies
|
|
run: pip install setuptools wheel
|
|
|
|
- name: Build package
|
|
run: python setup.py sdist bdist_wheel
|
|
|
|
- name: Publish on PyPI
|
|
uses: pypa/gh-action-pypi-publish@v1.4.1
|
|
with:
|
|
user: __token__
|
|
password: ${{ secrets.pypi_token }}
|