--- name: build on: - push jobs: build: runs-on: fedora-builder steps: - name: Check out repository code uses: actions/checkout@v3 - name: Build package run: python3 -m build - name: run tox run: tox - name: Upload na pypi env: TWINE_USERNAME: ${{ secrets.PYPI_USER }} TWINE_PASSWORD: ${{ secrets.PYPI_PASSWORD }} if: github.ref_type == 'tag' run: python3 -m twine upload dist/*