Add sphinx-mdinclude #75
Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: PyPI publishing | |
on: | |
push: | |
create: | |
jobs: | |
pypi_publish: | |
name: Publish to PyPI | |
runs-on: ubuntu-latest | |
strategy: | |
fail-fast: true | |
if: contains(github.ref, 'refs/tags/') | |
steps: | |
- name: Checkout repository | |
uses: actions/checkout@v2 | |
- name: Set up Python 3.9 | |
uses: actions/setup-python@v2 | |
with: | |
python-version: 3.9 | |
- name: Install dependencies | |
run: sh bin/cicd_install.sh | |
- name: Build package | |
run: poetry build | |
- name: Validate built wheel | |
run: sh bin/cd_validate_build.sh | |
################################################# | |
# publish to Test PyPI for validation purposes | |
- name: Configure Test Pypi | |
run: poetry config repositories.testpypi https://test.pypi.org/legacy/ | |
- name: Publish to Test PyPI | |
env: | |
TEST_PYPI_TOKEN: ${{ secrets.PARSENVY_TEST_PYPI }} | |
run: poetry publish -r testpypi -u __token__ -p "$TEST_PYPI_TOKEN" | |
################################################# | |
# publish to production PyPI | |
- name: Publish to production PyPI | |
env: | |
PRODUCTION_PYPI_TOKEN: ${{ secrets.PARSENVY_PRODUCTION_PYPI }} | |
run: poetry publish -u __token__ -p "$PRODUCTION_PYPI_TOKEN" |