Implement Suspend() command for instances (#524) #433
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 Python 🐍 distributions 📦 to PyPI and TestPyPI | |
| on: push | |
| jobs: | |
| build-n-publish: | |
| name: Build and publish Python 🐍 distributions 📦 to PyPI and TestPyPI | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/checkout@master | |
| - name: Set up Python 3.8 🐍🐍🐍 | |
| uses: actions/setup-python@v1 | |
| with: | |
| python-version: 3.8 | |
| - name: Install poetry | |
| run: | | |
| python -m pip install poetry | |
| - name: Install dependencies through Poetry | |
| run: | | |
| python -m poetry install --with dev | |
| - name: Publish distribution 📦 to PyPI | |
| if: startsWith(github.event.ref, 'refs/tags') | |
| env: | |
| PYPI_TOKEN: ${{ secrets.pypi_deploy }} | |
| run: | | |
| poetry config pypi-token.pypi $PYPI_TOKEN | |
| poetry publish --build |