Merge pull request #135 from SergeyOstrouhov/appstore-bag-pod-auth #146
This file contains hidden or 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: Publish mdast_cli π distributions to PyPI | |
| on: | |
| push: | |
| branches: | |
| - main | |
| jobs: | |
| build-n-publish: | |
| name: Build and publish mdast_cli π distributions to PyPI | |
| runs-on: ubuntu-22.04 | |
| steps: | |
| - uses: actions/checkout@master | |
| - name: Set up Python 3.12 | |
| uses: actions/setup-python@v1 | |
| with: | |
| python-version: 3.12 | |
| # - name: Linter flake8 | |
| # uses: py-actions/flake8@v2.2.1 | |
| # with: | |
| # exclude: "build,dist,check_mdast_cli,googleplay_pb2.py" | |
| # max-line-length: "120" | |
| # | |
| # - name: Linter isort | |
| # uses: isort/isort-action@v1.1.0 | |
| # with: | |
| # configuration: "--skip ./docker --skip ./venv --skip ./check_mdast_cli --line-length 120 --check-only" | |
| # requirements-files: "requirements.txt" | |
| - name: Install pypa/build | |
| run: >- | |
| python -m | |
| pip install | |
| build | |
| --user | |
| - name: Build a binary wheel and a source tarball | |
| run: >- | |
| python -m | |
| build | |
| --sdist | |
| --wheel | |
| --outdir dist/ | |
| . | |
| - name: Publish distribution π¦ to Test PyPI | |
| uses: pypa/gh-action-pypi-publish@master | |
| with: | |
| user: __token__ | |
| password: ${{ secrets.TEST_PYPI_API_CLI_TOKEN }} | |
| repository_url: https://test.pypi.org/legacy/ | |
| - name: Publish distribution π¦ to PyPI | |
| if: github.event_name == 'push' | |
| uses: pypa/gh-action-pypi-publish@master | |
| with: | |
| user: __token__ | |
| password: ${{ secrets.PYPI_API_CLI_TOKEN }} |