Moved to master workflow
This commit is contained in:
@@ -69,3 +69,20 @@ 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 }}
|
||||
uses: actions/setup-python@master
|
||||
with:
|
||||
python-version: 3.7
|
||||
- name: Build Python distribution
|
||||
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
|
||||
- name: Publish a Python distribution to PyPI
|
||||
uses: pypa/gh-action-pypi-publish@master
|
||||
with:
|
||||
user: __token__
|
||||
password: ${{ secrets.PYPI_API_KEY }}
|
||||
packages_dir: ./packages/techdocs-container/techdocs-core/dist
|
||||
|
||||
@@ -42,21 +42,3 @@ 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
|
||||
run: |
|
||||
pip install wheel
|
||||
rm -rf $TECHDOCS_CORE_PATH/dist
|
||||
python $TECHDOCS_CORE_PATH/setup.py bdist_wheel sdist --formats gztar -d $TECHDOCS_CORE_PATH/dist
|
||||
- name: Publish a Python distribution to PyPI
|
||||
uses: pypa/gh-action-pypi-publish@master
|
||||
with:
|
||||
user: __token__
|
||||
password: ${{ secrets.pypi_api_key }}
|
||||
packages_dir: ./packages/techdocs-container/techdocs-core/dist
|
||||
|
||||
Reference in New Issue
Block a user