name: Upload package to pypi on: push: branches: - "master" jobs: upload: runs-on: ubuntu-latest steps: - name: Checkout the repository uses: actions/checkout@v2 - name: Setup Python uses: actions/setup-python@v2 with: python-version: "3.8" - name: Publish package run: | pip install poetry poetry config pypi-token.pypi ${{ secrets.PYPI_TOKEN }} poetry publish --build