2020-04-29 14:48:44 +00:00
|
|
|
---
|
|
|
|
name: Publish
|
|
|
|
|
|
|
|
on:
|
|
|
|
push:
|
|
|
|
tags:
|
|
|
|
- '*'
|
|
|
|
|
|
|
|
jobs:
|
|
|
|
publish:
|
|
|
|
name: "Publish release"
|
|
|
|
runs-on: "ubuntu-latest"
|
|
|
|
|
|
|
|
steps:
|
|
|
|
- uses: "actions/checkout@v2"
|
2020-10-07 19:58:59 +00:00
|
|
|
- uses: "actions/setup-python@v2"
|
2020-04-29 14:48:44 +00:00
|
|
|
with:
|
|
|
|
python-version: 3.7
|
2020-08-15 03:52:58 +00:00
|
|
|
- name: "Install dependencies"
|
|
|
|
run: "scripts/install"
|
2020-09-06 10:08:07 +00:00
|
|
|
- name: "Build package & docs"
|
|
|
|
run: "scripts/build"
|
|
|
|
- name: "Publish to PyPI & deploy docs"
|
2020-04-29 14:48:44 +00:00
|
|
|
run: "scripts/publish"
|
|
|
|
env:
|
|
|
|
TWINE_USERNAME: __token__
|
|
|
|
TWINE_PASSWORD: ${{ secrets.PYPI_TOKEN }}
|