use working-directory instead of longs paths

This commit is contained in:
Sebastian Qvarfordt
2020-07-20 17:43:13 +02:00
parent d328ba590d
commit e8d5992f70
+5 -3
View File
@@ -69,6 +69,7 @@ jobs:
GITHUB_TOKEN: "${{ secrets.GITHUB_TOKEN }}"
package_root: "packages/core"
tag_prefix: "v"
# Publish techdocs-core to PyPI
- uses: actions/checkout@master
- name: Set up Python ${{ matrix.python-version }}
@@ -76,13 +77,14 @@ jobs:
with:
python-version: 3.7
- name: Build Python distribution
working-directory: ./packages/techdocs-container/techdocs-core
run: |
pip install wheel
rm -rf ./packages/techdocs-container/techdocs-core/dist
python ./packages/techdocs-container/techdocs-core/setup.py bdist_wheel sdist --formats gztar -d ./packages/techdocs-container/techdocs-core/dist
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 }}
packages_dir: ./packages/techdocs-container/techdocs-core/dist