Bump pypa/gh-action-pypi-publish in /.github/workflows #38
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: Deploy to PyPi package repository | |
| on: push | |
| jobs: | |
| deploy: | |
| name: Deploy graphANNIS package | |
| runs-on: ubuntu-20.04 | |
| # Only run Job on tagged commits that start with "v" | |
| if: startsWith(github.ref, 'refs/tags/v') | |
| steps: | |
| - name: Setup Python | |
| uses: actions/setup-python@v2 | |
| with: | |
| python-version: '3.8' | |
| - name: Checkout | |
| uses: actions/checkout@v1 | |
| - name: Install dependencies | |
| run: pip install cffi networkx setuptools wheel | |
| - name: Build package | |
| run: python setup.py sdist bdist_wheel | |
| - name: Publish distribution 📦 to Test PyPI | |
| uses: pypa/gh-action-pypi-publish@v1.13.0 | |
| with: | |
| password: ${{ secrets.test_pypi_password }} | |
| repository_url: https://test.pypi.org/legacy/ | |
| - name: Publish distribution 📦 to PyPI | |
| uses: pypa/gh-action-pypi-publish@v1.13.0 | |
| with: | |
| password: ${{ secrets.pypi_password }} | |