add to techdocs.yml for testing purposes

This commit is contained in:
Sebastian Qvarfordt
2020-07-20 17:44:35 +02:00
parent e8d5992f70
commit aed171b74f
+18
View File
@@ -42,3 +42,21 @@ jobs:
- name: Lint techdocs-core package
run: |
python3 -m black --check $TECHDOCS_CORE_PATH/src
# Publish techdocs-core to PyPI
- uses: actions/checkout@master
- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@master
with:
python-version: 3.7
- name: Build Python distribution
working-directory: ./packages/techdocs-container/techdocs-core
run: |
pip install wheel
rm -rf dist
python setup.py bdist_wheel sdist --formats gztar
- name: Publish a Python distribution to PyPI
working-directory: ./packages/techdocs-container/techdocs-core
uses: pypa/gh-action-pypi-publish@master
with:
user: __token__
password: ${{ secrets.PYPI_API_KEY }}