2021-12-15 09:19:01 +03:00
|
|
|
name: Publish Package to PyPI
|
|
|
|
|
|
|
|
on:
|
|
|
|
push:
|
|
|
|
tags:
|
|
|
|
- 'v*.*.*'
|
|
|
|
|
|
|
|
jobs:
|
|
|
|
publish_to_pypi:
|
2021-12-16 08:37:52 +03:00
|
|
|
name: Push Package to PyPI
|
2021-12-15 09:19:01 +03:00
|
|
|
runs-on: ubuntu-latest
|
|
|
|
steps:
|
|
|
|
- name: Check out the repo
|
|
|
|
uses: actions/checkout@v2
|
|
|
|
|
|
|
|
- name: Install dependencies
|
|
|
|
run: pip install wheel setuptools
|
2021-12-16 08:37:52 +03:00
|
|
|
|
|
|
|
- name: Install Doreah (imported on build)
|
|
|
|
run: pip install doreah
|
2021-12-15 09:19:01 +03:00
|
|
|
|
|
|
|
- name: Build package
|
|
|
|
run: python setup.py sdist bdist_wheel
|
|
|
|
|
|
|
|
- name: Publish to PyPI
|
|
|
|
uses: pypa/gh-action-pypi-publish@release/v1
|
|
|
|
with:
|
|
|
|
user: __token__
|
|
|
|
password: ${{ secrets.PYPI_API_TOKEN }}
|